[root@tigger:/usr/local/bin] ps -Zefc

Friday, October 06, 2006

Dates in scripts

Simple but stupidly lacking month and year changes:

DATE=`date +20%y%m%d`
YESTERDAY=`echo ${DATE} - 1 bc`

Yesterday should be an if [ {DAY} -1 <>

No comments: