in reply to Re: Join lines that match an string
in thread Join lines that match an string
Kennethk, Linuxer, Ambrus, thanks a lot for your help, Linuxer you got the idea perfectly, many times is very dificult to explain yourself in words and you did it.
The best solution is what Ambrus wrote
perl -wpe 'if (/\bremotely\b/.../\bp_args\b/) { chomp }'The only problem with this is that it joins the line that is after "p_args" but I can deal with that (perl -e "s/\';host=/\';\host=\n/g" -p data00 > data01. Thanks a lot again for your help, tips and advice
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Join lines that match an string
by ambrus (Abbot) on Jul 13, 2010 at 17:35 UTC | |
by ranrodrig (Novice) on Jul 13, 2010 at 20:00 UTC | |
by ambrus (Abbot) on Jul 13, 2010 at 20:08 UTC | |
Re^3: Join lines that match an string
by linuxer (Curate) on Jul 13, 2010 at 17:21 UTC |
In Section
Seekers of Perl Wisdom