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 difference between cat and more command?

1366


Explain command to show the space allocation of files?

1170


What are filter commands in unix?

1261


What are grep patterns?

1153


Why is it called grep?

1087


Is grep faster than awk?

1085


What is the functionality of a top command?

1163


How do I delete files from command prompt?

1282


What is the behavioural difference between cmp and diff commands?

1342


How do I search for a file in unix command?

1061


Explain ‘system calls’ with respect to unix commands?

1158


How to display no of records in oracle using unix command?

1231


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

1138


Using unix command how to display no of records in oracle?

1210


What are the commands in UNIX to list the files in a Directory?

1257