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?

Answer Posted / aayan

sed '1~100iabcdef' filename.txt

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does path variable work?

970


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.

2778


What is bash shell command?

1009


What are the two files of crontab command?

1228


How to get the 3rd element/column from each line from a file?

1189


How do I run a shell script on a mac?

1125


How will you connect to a database server from linux?

1045


What does echo mean in scripting?

1007


What language is bash?

922


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

1474


What is shell and shell script?

1116


Explain about non-login shell files?

1209


What is awk script?

977


Why are shell scripts used?

1077


How do we create command aliases in a shell?

992