Delete range of lines above pattern
Displaying lines (eg: 2 lines) above pattern is easy with grep -B2 option. The ‘-v’ option removes only the matched lines but it not working with -B2 option. Option “-B” print outs lines, not select them. From manual of grep: sed can suppress more lines, but only after the pattern: So we have print out… Read More »