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 / meenu
if u want first 7 rows then
head -n7 <filename>
but if you want only 7th row then
awk 'nr==7 {print}' <fileanme>
or
tail -n4 <filename>|head -n1
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the use of cut command in unix?
What do chgrp command do?
What is the search command in unix?
What is the difference between cat command and more command?
What is the nmap command?
How do I use grep to find a file?
Which command is used to find whether the system is 32 bit or 64 bit?
Explain ‘library functions’ with respect to unix commands?
How do I use grep to search for a file?
How can we use grep command in unix?
Name the general commands in using unix os for a beginner?
How do I open a port?
What is grep r?
Write a command that will display files in the current directory, in a colored, long format.