in reply to
How to slurp up multi lines between two markers
perl -ne 'if(not 1../-----END RSA PRIVATE KEY-----/){$done=1,print if /-----BEGIN CERTIFICATE-----/../-----END CERTIFICATE-----/;last if $done and /-----END CERTIFICATE-----/.././}'
Comment on
Re: How to slurp up multi lines between two markers
Download
Code
In Section
Seekers of Perl Wisdom