Keep It Simple, Stupid | |
PerlMonks |
Re^2: Join lines that match an stringby ranrodrig (Novice) |
on Jul 13, 2010 at 17:02 UTC ( [id://849319]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|