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 / ganeswar bojanapu

Here is simply command

sed -n '50~50'p filename

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?

1056


Where is bash history?

859


is this growing field and what is average package in this?

2246


Explain about the slow execution speed of shells?

1161


What is shell application?

948


How do I run a shell script in powershell?

1068


how will you find the total disk space used by a specific user?

982


What is the difference between grep and egrep?

1069


What is .sh file in mac?

975


How will you emulate wc –l using awk?

1466


What is the crontab?

1010


What is another name for a bash shell script that you might see?

1419


What is the meaning of $1 in shell script?

1053


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2425


How can I set the default rwx permission to all users on every file which is created in the current shell?

1374