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
What is awk used for?
Explain ‘system calls’ with respect to unix commands?
What does the md command do?
What is awk good for?
How do I use nslookup?
Differentiate cat command from more command.
What is the command to compare two files in unix?
Who command in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Can you explain a little bit about command substitution?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the unix command to confirm a remote host is alive or not?
What are bash commands?
What do chgrp command do?
Which command will print your home directory on screen?