Skip to main content

Exclude textparts from files

$ sed '/WORD1/,/WORD2/d' input.txt > output.txt

Returns output.txt as complete input.txt but without the lines between WORD1 and WORD2 (between tablenames for example)