|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: remove lines from file ending with / charby swampyankee (Parson) |
| on Sep 03, 2012 at 13:23 UTC ( #991432=note: print w/ replies, xml ) | Need Help?? |
|
The first place to look is in perlfaq5. Anyhow, there are several ways to do it. The easiest is to
If the file is small (ymmv), you can do something like this:
A couple of suggestions: first, test from a copy of the file you plan on doing this to. Second, study perlre and grep for hints. Third, beware of trailing white space.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||