Wednesday, November 30, 2005

Script to remove old files

I finally got around to writing a script to remove old files from dcc that were filling up my disk.  The script was pretty simple.

DATE=`date +"%y%m%d"`
if [ -d $LOGDIR ]; then
find $LOGDIR -type f -name 'msg.*' -mtime $TIMELIMIT -exec rm {} \;

Technorati Tags:

No comments:

Post a Comment

Weather on Display: Building a Raspberry Pi Weather Station with Touchscreen

Are you tired of constantly checking your phone or computer for the latest weather updates? Want to have real-time weather information readi...