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 / niranjan
To display first 7 lines of file:-
1) head -7 filename
2) cat filename|head -7
To display only 7th line of file:-
1) head -7 filename|tail -1
2) cat filename|head -7|tail -1
3) tail +7 filename|head -1
choice is ur's..Which one u feel looks gud...:):):)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the nmap command?
What is the command to find maximum memory taking process on the server?
What is unix command?
What is ‘ps’ command for?
What is grep and how do you use it?
What is merge command in unix?
what is the advaantage of each user having its own copy of the shell?
Which command can you use to find the currently running process in unix server?
What command will change your prompt to myprompt?
What difference between cmp and diff commands?
What are awk commands?
Which command is used to copy files?
Which command is used to restrict incoming messages?
Which command should you use to find the remaining disk space in unix server?
Which command is used to create a directory?