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 command to display different lines that are found when compare two files?
How do I search a whole word in vim?
What is the command to find maximum memory taking process on the server?
Using unix command how to display no of records in oracle?
How can you see the command line history?
What is command statement?
What is time_t?
What are the differences among a system call, a library function, and a unix command?
How do I search for a file in unix command?
How to use grep command to list find the records of a file containing 10 different strings?
What command will change your prompt to myprompt?
What is $0 bash?
Which command will print your home directory on screen?
Give the command for finding the current date.
What is the size of time_t?