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
Which command will print your home directory on screen?
What is the command to find hidden files in the current directory?
What is the search command in unix?
Who invented grep?
What is ctrl d?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
How can we use grep command in unix?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is the comma to show the space allocation of files?
What does the md command do?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What will the following command do?
What is grep in bash?
What is awk good for?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?