How Do You Delete Multiple Lines in Unix?
Contents How Do I Remove a Few Lines in Unix? to Remove the Lines from the Source File Itself, Use the -I Option with Sed Command. If You Don't Wish to Delete...
Contents
How do I remove a few lines in Unix?
To Remove the lines from the source file itself, use the -i option with sed command. If you dont wish to delete the lines from the original source file you can redirect the output of the sed command to another file.
Must Read
How do I remove the first 10 lines in Unix?
Remove first N lines of a file in place in unix command line
- Both sed -i and gawk v4.1 -i -inplace options are basically creating temp file behind the scenes. IMO sed should be the faster than tail and awk . – …
- tail is multiple times faster for this task, than sed or awk . (