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 / deshdeep saxena
awk 'NR==7{print}' filename will give you the seventh line
as output
awk 'NR<=7[print]' filename will give you from 1st line to
the seventh line :-)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the behavioural difference between cmp and diff commands?
What does 'mkdir' command do in UNIX?
What is the unix command to confirm a remote host is alive or not?
What is the pipe command?
How do I run a bash script?
What does grep v do?
What is ctrl d?
Explain mount and unmount command.
What is merge command in unix?
Why is awk called awk?
Differentiate cat command from more command.
Is grep faster than awk?
What is the difference between cat command and more command?
What is the size of time_t?
Which command should you use to find the remaining disk space in unix server?