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
How does path variable work?
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.
What is bash shell command?
What are the two files of crontab command?
How to get the 3rd element/column from each line from a file?
How do I run a shell script on a mac?
How will you connect to a database server from linux?
What does echo mean in scripting?
What language is bash?
What is another name for a bash shell script that you might see?
What is shell and shell script?
Explain about non-login shell files?
What is awk script?
Why are shell scripts used?
How do we create command aliases in a shell?