Daily Archives: June 19, 2015

Use sed to delete lines between text phrases

How to remove lines from stdin between and including the 2 lines as fields in a sed expression: sed “/textline1/,/textline2/d” This will delete from the input all lines between a line containing the text ‘textline1’ and ‘textline2’. If you have … Continue reading

Posted in Sales | Tagged , | Comments Off on Use sed to delete lines between text phrases