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

Answer Posted / deepak

head -51 <filename> | tail -1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain mount and unmount command.

607


Is grep faster than awk?

551


What is updatedb?

576


What is a bash command?

620


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

571






Write a command to display a file’s contents in various formats?

614


What does the md command do?

560


Which command is used to delete all files in the current directory and all its sub-directories?

654


Differentiate cat command from more command.

568


What command will change your prompt to myprompt?

691


What command is used to check the current users?

584


What is the first character of the output in ls l command?

625


What is the use of awk command in unix?

567


What is the comma to display different lines that are found when compare two files?

587


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

752