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

Which command is used to restrict incoming messages?

580


What do know about tee command?

594


Who invented grep?

639


What is pipe command in unix?

662


What does find command return in unix?

580






What is the command to find hidden files in the current directory?

570


Is command prompt unix?

570


how to sort the content of the file based on numeric values

1238


What does the command '$ls | wc –l > file1' do?

670


Which command is used to find whether the system is 32 bit or 64 bit?

620


Name the general commands in using unix os for a beginner?

613


What is {} in find command?

569


What are the unix commands?

539


What do chgrp command do?

579


How can you see the command line history?

578