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 awk command used for?
Describe the usage and functionality of the command rm –r * in unix?
Name the unix command to find how many days the server has been up.
Why is it called a shebang?
What is the nmap command?
How do I run a whois command?
Explain command to view process running?
What is unix command line?
How do I use grep to find a file?
What does grep v grep do?
What is the use of sed command in unix?
What is the command to find maximum memory taking process on the server?
How to find $ai_serual resolved path by using unix
What is $0 bash?
Are you in or at the office?