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 ?    0 Yes 0 No

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

Answer / pix

sed '100iABCDEF' file1

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Shell Script Interview Questions

Why is it called a shell?

0 Answers  


how is the oppurtunities for unix in the software

1 Answers  


how to create purchase order

2 Answers  


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

0 Answers  


what do u mean by $#,$* in unix programming?

5 Answers   Convergys, TCS,






What is meant by $1 in shell script?

0 Answers  


What are the different shells available?

3 Answers  


How do I run a script from command prompt?

0 Answers  


what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?

1 Answers  


why did you apply to shell

3 Answers   Shell,


Explain about non-login shell files?

0 Answers  


Which scripting language is best for automation?

0 Answers  






Categories