Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 11 lines (8 sloc) 0.237 kB
c386015 Changes to proclog and build nginx scripts
Timothy King authored
1 #!/bin/zsh
909653b @tmking added some things
authored
2
3 date_str=$(date -d '14 days ago' +%Y%m%d)
c386015 Changes to proclog and build nginx scripts
Timothy King authored
4 proclogs=( $HOME/.procmail/log-* )
909653b @tmking added some things
authored
5
c386015 Changes to proclog and build nginx scripts
Timothy King authored
6 for f in $proclogs; do
7 d=$(echo $f | cut -d'-' -f2)
8 [ "$d" -le "$date_str" ] && rm -f $f
9 #echo rm -f ~/.procmail/log-$date_str 2>/dev/null
10 done
Something went wrong with that request. Please try again.