There are specific lines that I want to remove from a file. Let's say it's line 20-37 and then line 45. How would I do that without specifying the content of those lines?
Text Processing – How to Remove Certain Lines by Line Numbers in a File
text processing
Best Answer
With
sed
, like so:If you wanted to do this in-place: