how to find the 51th record of a file containing 100 records
in unix.

Answer Posted / dinesh kumar

awk 'NR=51 Printf{$0}' filename

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to show the space allocation of files?

558


What are awk commands?

582


What is the command to view process running?

572


What is the difference between cat command and more command?

599


What is the difference between awk and grep?

557






What will the following command do?

615


What do know about tee command and its usage?

586


Who command in unix operating system?

660


Name the unix command to find how many days the server has been up.

600


What is nr in awk command?

599


Which command should you use to find the remaining disk space in unix server?

701


Write a command to kill the last background job?

618


How many unix commands are there?

625


Can you enlist some commonly used network commands?

599


What is merge command in unix?

942