On Mon, Mar 05, 2007 at 02:58:38PM +0000, Mário Gamito wrote:
> I'm no PERL guru, far from that, i must confess.
> I just use it in little things for system administration.
> 
> $ perl -pi~ -e 's/include\
> /var/lib/spamassassin/3.001007/saupdates_openprotect_com/MIRRORED.BY//'
> ./updates_spamassassin_org.cf
> 
> but it gives me an error.
> 
> include /var/lib/spamassassin/3.001007/saupdates_openprotect_com/MIRRORED.BY
> 
> is the line (always the last) i want to remove.

Instead of trying to remove the last line, how about getting the file not
included in the first place.  For instance, why is there a MIRRORED.BY file in
an update channel?  Broken channels are bad.

-- 
Randomly Selected Tagline:
ALL WORK AND NO PLAY MAKES BART A DULL BOY ALL WORK AND NO PLAY
 MAKES BART A DULL BOY ALL WORK AND NO PLAY MAKES BART A DULL BOY
 ALL WORK AND NO PLAY MAKES BART A DULL BOY ALL WORK AND NO PLAY
 
        Bart Simpson on chalkboard in episode 1F07

Attachment: pgpK36NOPZ0F1.pgp
Description: PGP signature

Reply via email to