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...

How would you print just the 25th line in a file using
smallest shell script?

Answer Posted / alok

awk -F"|" ' NR == 25 {print} ' emp.lst

in this file | is a field seprator

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about non-login shell files?

1157


How does path variable work?

920


How do you find out What is your shell?

1034


How can you find out how long the system has been running?

865


How are shells born?

926


What does it mean to debug a script?

1008


How to get the first line from a file using just the terminal?

1072


What is web script?

1053


What command needs to be used to take the backup?

956


What is the use of "$#" in shell scripting?

1010


What are the advantages of shell script?

986


How to open a read-only file in the shell?

1094


What makes c shell a more preferable option than the bourne shell?

935


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1463


What is the default shell of solaris?

1015