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 are the dos commands?
How does shebang work?
How does pipe () work?
What is awk used for?
How do I delete files from command prompt?
How can you see the command line history?
Which command is used to copy files?
What is the command to find maximum memory taking process on the server?
What is the unix command to confirm a remote host is alive or not?
Differentiate cmp command from diff command.
What is the search command in unix?
How do you repeat a command in terminal?
Is it inbetween or in between?
Are you in or at the office?
What does the command ' $who | sort –logfile > newfile' do?