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

Where cron file kept?

2 Answers   Tech Mahindra,


What is web script?

0 Answers  


HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL SHELL SCRIPT?

3 Answers   Patni,


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

0 Answers  


How do I debug a shell script?

0 Answers  


What is the lifespan of a variable inside a shell script?

0 Answers  


What is k shell?

0 Answers  


How to set an array in linux?

0 Answers  


what is the difference between writing code in shell and editor?

1 Answers  


Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance

5 Answers   HP,


how can you execute the shell scripts?

4 Answers  


What is a batch file used for?

0 Answers  


Categories