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 will I insert a line "abcdef" at every 100th line of a file?

Answers were Sorted based on User's Feedback



How will I insert a line "abcdef" at every 100th line of a file?..

Answer / aayan

sed '1~100iabcdef' filename.txt

Is This Answer Correct ?    16 Yes 2 No

How will I insert a line "abcdef" at every 100th line of a file?..

Answer / pix

sed '100iABCDEF' file1

Is This Answer Correct ?    9 Yes 3 No

Post New Answer

More Shell Script Interview Questions

How do I run a shell script in powershell?

0 Answers  


What is echo in shell?

0 Answers  


How will you pass and access arguments to a script in linux?

0 Answers  


What are the different kinds of loops available in shell script?

3 Answers  


How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"

12 Answers   Cap Gemini,


The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on

2 Answers   Caritor,


what does "kill -9" and "kill -1" do

2 Answers   Amazon,


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

0 Answers  


What is bash used for?

0 Answers  


Why is the use of shell script?

0 Answers  


What can scripts do?

0 Answers  


What is the crontab?

0 Answers  


Categories