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 / hari
hai this Hari
try this
$sed -n '1,7p' <filename>
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between grep and find command in unix?
What is the significance of the 'tee' command?
What are the dos commands?
How do I find previous commands in unix?
What is the comma to show the space allocation of files?
Differentiate cmp command from diff command.
hw will u use awk in replacing cahrs and files
How do I run a bash script?
What is the difference between grep and grep?
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)?
What is the use of the tee command?
Which command is used to restrict incoming messages?
How do I delete files from command prompt?
Which command is used to create a directory?
How does the system know where one command ends and another begins?