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.
In reply to Re: Join lines that match an string
by kennethk
in thread Join lines that match an string
by ranrodrig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |