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 grep in bash?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
why metadb requires a seperate slice to create Solaris volume manager
How do I clear my terminal history?
How do I search a whole word in vim?
What does the metacharacter mean?
Which command is used to restrict incoming messages?
What is awk command used for?
Is command prompt unix?
What is the nmap command?
What does the command '$ls | wc –l > file1' do?
What does grep v do?
What is sed awk grep?
What does sed command do in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?