Sunday 26 February 2012

List files not accessed for a week

find ./ -atime +30 -type f -exec rm {} \;

@brief:  find the files in current directory whose are not accessed for 30 days and remove the same.