eagertotry
MIS
I am trying to delete lines from a file between a pair of patterns. I know this can be easily done in sed or awk, but I am not getting it today.
I want to delete all lines from BEGIN to END, both included.
Any help is appreciated
Code:
cat file1
something
# BEGIN
to be deleted
this one too
# END
whatever
I want to delete all lines from BEGIN to END, both included.
Any help is appreciated