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 search for text in vi?
What does 'mkdir' command do in UNIX?
What is the use of cut command in unix?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
How do I clear my terminal history?
What is {} in find command?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What will the following command do?
Enumerate some of the most commonly used network commands in unix?
How do I use grep to find a file?
What does grep v grep do?
How do I run a bash script?
What is updatedb?
How do I use grep to search for a file?
Describe the zip/unzip command using gzip.