if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.

Answer Posted / chinmaya sahu

tail +7 <filename> | head -1

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cat command and more command?

599


What does 'mkdir' command do in UNIX?

660


Write a command that will display files in the current directory, in a colored, long format.

687


What does the “echo” command do?

624


How do I use grep to find a file?

583






How do I delete files from command prompt?

555


Describe the zip/unzip command using gzip.

615


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

583


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

1579


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

595


What is ‘ps’ command for?

618


Is grep faster than awk?

561


Which command is used to create a directory?

575


How do I find previous commands in unix?

594


Explain how to use grep command to list find the records of a file containing 10 different strings?

594