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 / manu
if you want 1 to 7 row then
head -7 filename
if you want only 7th row exactly then
head -7 filename|tail -1
or
tail +7 filename|head -1
or
cat -n filename|grep '^7' filename
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a command to display a file’s contents in various formats?
How do I run a whois command?
How to use grep command to list find the records of a file containing 10 different strings?
What is the significance of the 'tee' command?
Differentiate cat command from more command.
What is the search command in unix?
What is awk used for?
What does the metacharacter mean?
What do chown command do?
What is the use of awk command in unix?
What is the command to find maximum memory taking process on the server?
What does this command do,"$more readme.txt“?
What is merge command in unix?
Which command will print your home directory on screen?
What happens when we execute a unix command?