$ 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)
- Tags
- bash
$ 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)