if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.
Answer Posted / deshdeep saxena
awk 'NR==7{print}' filename will give you the seventh line
as output
awk 'NR<=7[print]' filename will give you from 1st line to
the seventh line :-)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the size of time_t?
What is updatedb?
What does this command do,"$more readme.txt“?
What is command substitution?
What are the dos commands?
What is the use of awk command in unix?
What is the functionality of a top command?
What is the nmap command?
What is unix command?
What does grep v do?
What is the command to find maximum memory taking process on the server?
What is {} in find command?
Write a command to display a file’s contents in various formats?
Is it inbetween or in between?
Is ‘du’ a command? If so, what is its use?