Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain the steps that a shell follows while processing a command.

1167


What is a command and examples?

1158


How to use grep command to list find the records of a file containing 10 different strings?

1090


Describe the usage and functionality of the command rm –r * in unix?

1971


What is grep in bash?

1014


What is the search command in unix?

1051


What is s and g in sed command?

1065


What are reported commands?

1080


What is awk used for?

1084


What does this command do? Cat food 1 > kitty

1534


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

1163


Which command is used to copy files?

1125


Which unix command lists files/folders in alphabetical order?

1670


Which command is used to restrict incoming messages?

1048


Is it inbetween or in between?

1005