[Mimedefang] backing up quarantine dir, ridiculously long awk script

Lucas Albers admin at cs.montana.edu
Tue Jun 29 02:38:28 EDT 2004


Directions:
change to quarantine dir.
backs each day to seperate tar.bz2.
pipe through bash to run.
works well enough for me.

awk command:
 ls | awk -F- '{print "tar cjpf " $1"-"$2"-"$3"-"$4".tar.bz2 "
$1"-"$2"-"$3"-"$4"*"}'|sort -u |head -n 1


-- 
Luke Computer Science System Administrator
Security Administrator,College of Engineering
Montana State University-Bozeman,Montana



More information about the MIMEDefang mailing list