How to rewrite lines in file?
22135
How can I get my sed command to make permanent changes to a file?
3662
How can I replace a string in a file(s)?
39925
Insert a new line after every N lines?
153536
number lines in a file
46301
How to find lines matching a pattern and delete them?
41391
How to perform replacements defined in one file on another file
30288
How to print all lines after a match up to the end of the file?
50383
How can I search for a multiline pattern in a file?
149004
How do I add newlines between lines printed on the command line?
36982
How do I insert and delete some characters in the middle of a file?
65304
How can I have a newline in a string in sh?
56794
Adding newlines while writing text to a file
23957
How to append multiple lines to a file
5582
How to interleave the lines of two or more files?
50542
Remove lines from file up to a pattern, unless the pattern doesn't exist
43994
How can I redirect matching lines to a file, and non-matching lines to a different file?
43396
Modify the content of specific line in text file