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 and how do you use it?
What is the command to find hidden files in the current directory?
How does pipe () work?
What is $0 bash?
What does the command '$ls | wc –l > file1' do?
Is grep faster than awk?
How to find $ai_serual resolved path by using unix
What is the pipe command?
Which command can you use to find the currently running process in unix server?
Why is awk called awk?
Write a command to display a file’s contents in various formats?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How do I search a whole word in vim?
What are the differences among a system call, a library function, and a unix command?
What is grep in bash?