in reply to perl one line for advanced grep (current line and next one)
perl -ne 'print $_.=<> if /string/' testfile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl one line for advanced grep (current line and next one)
by Random_Walk (Prior) on Sep 02, 2013 at 08:03 UTC | |
by kschwab (Vicar) on Sep 02, 2013 at 13:44 UTC |