in reply to
Wish to keep only those lines which start with letter s, and delete all other lines.
perl -pi.bak -e'if (!/^s/) { $_ = "" }' filename
in shell
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.
Comment on
Re: Wish to keep only those lines which start with letter s, and delete all other lines.
Download
Code
In Section
Seekers of Perl Wisdom