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
Which unix command lists files/folders in alphabetical order?
Enlist some filename manipulation commands in unix.
How can we use grep command in unix?
What is s and g in sed command?
What is a bash command?
How does shebang work?
How does pipe () work?
Are you in or at the office?
Who command in unix?
What is {} in find command?
What is the behavioural difference between cmp and diff commands?
What do chmod command do?
What is unix command?
Can you enlist some commonly used network commands?
What is awk good for?