in reply to Join lines that match an string
perl -e 'while(<>){chomp; last if /p_agrs/;print if /remotely/}' < input.txt
might do what you intend. But it might not. If it doesn't meet spec, please post again with greater specificity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Join lines that match an string
by ranrodrig (Novice) on Jul 12, 2010 at 22:08 UTC | |
by ww (Archbishop) on Jul 12, 2010 at 22:12 UTC | |
by kennethk (Abbot) on Jul 12, 2010 at 23:09 UTC | |
by Anonymous Monk on Jul 12, 2010 at 23:50 UTC | |
by kennethk (Abbot) on Jul 13, 2010 at 00:25 UTC | |
by linuxer (Curate) on Jul 13, 2010 at 08:52 UTC | |
by ambrus (Abbot) on Jul 13, 2010 at 17:58 UTC | |
|