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
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Are you in or at the office?
What does the metacharacter mean?
What is the pipe command?
what is the advaantage of each user having its own copy of the shell?
What is the size of time_t?
What are the unix commands?
What is the use of awk command in unix?
Explain command to display different lines that are found when compare two files?
What are grep patterns?
What is the difference between cat command and more command?
What is the use of egrep command in unix?
What is the behavioural difference between cmp and diff commands?
Which command is used to find whether the system is 32 bit or 64 bit?
What do chmod command do?