perl -i -ne'/^s/i..print' # or if we don't care about capital s... perl -i -ne'/^s/..print'
update: s/-ine/-i -ne/g # stupid mistake
In reply to Re: Wish to keep only those lines which start with letter s, and delete all other lines.
by wog
in thread Wish to keep only those lines which start with letter s, and delete all other lines.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |