Ok
I know that this is trivial question but: How can i remove lines from files that are between two known patterns/words:
pattern1 garba
This is easily done with awk:
BEGIN { doPrint = 1; } /pattern1/ { doPrint = 0; print $0; } /pattern2/ { doPrint = 1; } { if (doPrint) print $0; }
I've found the sed info is fairly easy reading, with many examples. Same thing for awk.