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

Hi, If you want to display 7th line from the file, simple
way is,

$head -7 <filename>| tail -1

Thanks
Kantha

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some command words?

561


What is $0 bash?

646


How do you grep recursively?

555


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

621


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

631






What is ‘ps’ command for?

614


What is command substitution?

621


What is the use of find command in unix?

578


What are awk commands?

582


Which command will print your home directory on screen?

543


What is the nmap command?

582


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

759


what is the advaantage of each user having its own copy of the shell?

2034


Give the command for finding the current date.

581


How does pipe () work?

593