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 / ashwini

sed -n 1,7p <filename>

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is command prompt unix?

586


Write a command that will display files in the current directory, in a colored, long format.

689


What is command substitution?

627


hw will u use awk in replacing cahrs and files

2737


How do I use nslookup?

577






What is the use of sed command in unix?

604


Which command is used to restrict incoming messages?

594


What are file commands?

656


What does grep v grep do?

556


What does the md command do?

578


Which command should you use to find the remaining disk space in unix server?

714


What is used to type command?

547


How do I search for a file in unix command?

551


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


What is grep in bash?

591