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
Explain mount and unmount command.
Which unix command lists files/folders in alphabetical order?
How do I run a bash script?
What are reported commands?
What are file commands?
What does 'mkdir' command do in UNIX?
What will the following command do?
Give the command for finding the current date.
What is the difference between cat and more command?
How do I use grep to find a file?
Does cp command overwrite files?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Why is it called grep?
What is the use of finger command?
What command will change your prompt to myprompt?