Save the code below to x.pl. Invoke with 'perl x.pl <filename>...'.
#!/usr/bin/perl -i -n print unless /\bsome string\b/;
| 90% of every Perl application is already written. ⇒ |
| dragonchild |
In reply to Re: Re: Re: delete a line by a string
by pfaut
in thread delete a line by a string
by moked
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |