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
What is the comma to display different lines that are found when compare two files?
What are file commands?
What is the command to find hidden files in the current directory?
What are the unix commands?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What does this command do,"$more readme.txt“?
Who invented grep?
What is the difference between cat and more command?
Which command is used to create a directory?
Name the general commands in using unix os for a beginner?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Why is grep called grep?
Write a command that will display files in the current directory, in a colored, long format.
How does pipe () work?
Explain ‘library functions’ with respect to unix commands?