this is script to remove directories that exist equal or older than 3 days
Code:
#!/bin/bash
echo "Enter the name of the dir you want to check"
read dir
if [ -d $dir ]
then
find $dir -type f -a -atime +10 -exec rm -i {} \;
else
echo "The Directory doesn't exist"
fi
#END
if any one has ideas that i can refine script with please give me a feedback with these refinements .
Thanks .