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 / ramesh jp

awk 'NR % 50 == 0' print

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using shell scripts?

1110


What is the difference between grep and egrep?

1189


How to pass an argument to a script?

1286


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

1174


What does echo mean in scripting?

1052


I have 2 files and I want to print the records which are common to both.

1205


Is shell scripting difficult?

1001


How to print the first array element?

1085


Why is shell scripting important?

1081


How do I run a shell script in powershell?

1176


What is the command to find out users on the system?

1015


What is shell and shell script?

1157


How will you copy a file from one machine to other?

1053


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

1178


What can scripts do?

1165