Tag Info

New answers tagged

0

Here's the more verbose version of essentially the same thing @1_CR posted above and @ ash showed at pastebin, hopefully using more readable syntax: awk '{ lastLine = currentLine; currentLine = $0; } /foo|bar/ \ { getline currentLine next } NR > 1 \ { print lastLine; } END \ ...



Top 50 recent answers are included