Nice, but it misses the line following a second consecutive line matching the pattern
# eg this works as expected test1 string test2 test3 # this one fails to print test2 test1 string string test2 test3
Cheers,
R.
In reply to Re^2: perl one line for advanced grep (current line and next one)
by Random_Walk
in thread perl one line for advanced grep (current line and next one)
by sroux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |