how to find the 51th record of a file containing 100 records
in unix.
Answer Posted / dinesh babu
awk '{if (NR==51) print$0}' filename
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I use grep to search for a file?
What does the command '$ls | wc –l > file1' do?
What difference between cmp and diff commands?
What is the use of sed command in unix?
Which command is used to kill the last background job?
What is in grep command?
What is pipe command in unix?
What is the comma to show the space allocation of files?
Is grep faster than awk?
What will the following command do?
How can you see the command line history?
What is the size of time_t?
What is awk command used for?
What does touch command do in unix?
What is the use of the command 'ls -x chapter[1-5]' ?