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


Please Help Members By Posting Answers For Below Questions

What are the general commands in using unix os for a beginner?

563


What is in grep command?

619


What is the unix command to confirm a remote host is alive or not?

558


Why is it called a shebang?

556


How does the system know where one command ends and another begins?

1541






What is unix command?

561


What is command substitution?

605


What is the pipe command?

558


What is the nmap command?

555


What is rmdir command?

532


What command is used to check the current users?

570


What is the use of egrep command in unix?

605


Who command in unix operating system?

640


What is the difference between grep and grep?

547


Explain mount and unmount command.

592