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


Please Help Members By Posting Answers For Below Questions

What is difference between grep and find command in unix?

583


What is the significance of the 'tee' command?

600


What are the dos commands?

657


How do I find previous commands in unix?

599


What is the comma to show the space allocation of files?

562






Differentiate cmp command from diff command.

592


hw will u use awk in replacing cahrs and files

2738


How do I run a bash script?

588


What is the difference between grep and grep?

571


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)?

964


What is the use of the tee command?

602


Which command is used to restrict incoming messages?

594


How do I delete files from command prompt?

555


Which command is used to create a directory?

577


How does the system know where one command ends and another begins?

1582