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

What is the difference between a 'thread' and a 'process'?

3 Answers  


What is the purpose of scripting?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


What is the default shell of solaris?

0 Answers  


Explain about stdin, stdout and stderr?

0 Answers  






What does $@ mean bash?

0 Answers  


Explain about shebang?

0 Answers  


What is a shell in operating system?

0 Answers  


What is the use of script interpreter in shell scripting?

3 Answers  


How to handle the delimiter unit seperator in Unix

2 Answers  


What does sh mean?

0 Answers  


how to find weblogic version through linux cammand

1 Answers   L&T,


Categories