D E Hammond schreef:
DELETE=Monday
:0 hi
|perl -i -pe 'next if /^$ENV{DELETE}/;' path/to/your/file
Consider warnings and quotemeta:
|perl -i -pwe 'next if /^\Q$ENV{DELETE}/' path/to/your/file
(see `perldoc -f quotemeta`)
--
Groet, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail