bash scripting question

Eric R. rossiter at discoverynet.com
Thu Feb 13 18:55:38 CST 2003


Afternoon LugNuts,

Ok, I have a group of directories named "save(and the date) i.e. 
"save021303".

Iv'e discoverd I can make the current days directory using:

mkdir save`date +%D | cut -c 1,2,4,5,7,8`

My question is, how would I delete the directory that is several days 
old?  i.e. save021003

rm -rf ??

Thanks for your time,
Eric




More information about the Kclug mailing list