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 / kshitij

sed -n 7p <filename>

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command to compare two files in unix?

618


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

631


Which unix command lists files/folders in alphabetical order?

614


What is the difference between cat command and more command?

599


Give the command for finding the current date.

581






What is .sh file?

616


What are file commands?

650


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

631


Why is it called grep?

557


What are some command words?

561


Why is grep called grep?

777


Name the various commands that are used for the user information in unix.

539


What is the use of egrep command in unix?

624


How does shebang work?

588


What is the size of time_t?

645