How will I insert a line "abcdef" at every 100th line of a file?
Answer Posted / pix
sed '100iABCDEF' file1
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is a command line shell?
What is the first line in a shell script?
Which is better perl or shell scripting?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What are the advantages of shell script?
Is shell a scripting language?
How do I save a powershell script?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is a shell environment?
What is shell variable?
How do we create command aliases in a shell?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Explain about sourcing commands?
What are filters explain sort with all the options available?
Why is it called a shell?