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

In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.

Answer Posted / mohsin

egrep "^[0-9]*[0|5]0" filename

Is This Answer Correct ?    5 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between grep and egrep?

1148


Why is used in shell scripting?

1008


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

982


What is shell company all about?

991


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

2225


Print the 10th line without using tail and head command.

2182


What is scripting used for?

1052


Why should we use shell scripts?

1067


Explain about the slow execution speed of shells?

1237


Why do we use shell scripting?

1004


How will you connect to a database server from linux?

1056


What is the command to find out today's date?

1147


Explain how you Automate your application using Shell scripting.

2325


What is a boot block?

1039


What are the two files of crontab command?

1241