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

ans- cut -d " " -f 1-7 <file name>

by this u can get all the 7 rows of ur file.
here i give 'space" as the delimeter.
u give the delimeter as u give in the file.

by -f option u can exactly get the 1 to 7 field/rows

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to display different lines that are found when compare two files?

1118


What do chgrp command do?

1166


What is the nmap command?

1153


What does 'mkdir' command do in UNIX?

1275


How can you see the command line history?

1106


Why is it called grep?

989


What do chmod command do?

1158


What is the use of cut command in unix?

1322


Explain command to view process running?

1096


what is the advaantage of each user having its own copy of the shell?

2524


How do I search for text in vi?

1006


Does cp command overwrite files?

1155


Write a command to kill the last background job?

1064


What is pipe command in unix?

1259


What is the command to find maximum memory taking process on the server?

1177