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
What is the search command in unix?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Is command prompt unix?
How many unix commands are there?
How do I use grep to search for a file?
What is the use of tee command?
What is command statement?
What do chmod, chown, chgrp commands do?
What is the use of the command 'ls -x chapter[1-5]' ?
What is ctrl d?
Which unix command to make a new directory?
Explain ‘library functions’ with respect to unix commands?
Differentiate cmp command from diff command.
Write a command to kill the last background job?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?