sed '5i\n\n\n' myfile inserts first \n as a literal n, and the other two \n\n as new lines, is it possible to insert all 3 new lines?
60118
Extra Backslash Required in First Appended Newline in sed
158267
Insert text in specific lines of a file
19781
replacing and adding at the end of lines with one line sed command
77691
How to replace line in file with pattern with sed?
63844
SED/tr etc.. : How to comment out a line that contains "string" in a file?
121046
How do I remove ï»¿ from the beginning of a file?
155976
How to join a line with a pattern with the next line with sed?
48823
sed -i - edit files in place does not work in compound commandq
77828
Can sed save its output to a file?
117351
How to switch/rotate every two lines with sed/awk?
14288
Replace a word with multiple lines using sed?
8529
How can I '\input' a file without getting the implicit newline?
29530
How insert a character at the begin of every line from a source code?
86509
sed in-place line deletion on full filesystem?
47913
How to remove trailing whitespaces with sed?
4497
Delete specific line number(s) from a text file using sed?
42283
Using sed with special characters