Hi,

I'm no PERL guru, far from that, i must confess.
I just use it in little things for system administration.

Now, i', trying to remove the last line of a file with:

$ 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.

Any help would be appreciated.

Warm Regards,
Mário Gamito

Reply via email to