procmail
[Top] [All Lists]

set names for backup files

2002-06-25 05:10:25
Hello -

I am using the backup mechanism described in the procmailex.

:0 c
backup

:0 ic
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,36d`

The messages in the backuop folder look like this one: msg.tVmI

It's hard to find out which is the one I may be looking for. :)

How can I make the part after the msg. to - say - be composed of year,
month, and date?

I tried this:
| cd backup && rm -f dummy `ls -t msg.`date +%d%m%Y_%H%M`| sed -e 1,36d`
but to no avail.

Any suggestions?
-- 
CU, Niki                        PGP:http://www.hiebaum.org/pgpkey.html
*Draft beer, not people*

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>