]>
apps.delaporte.us Git - down-shift.git/blob - bin/wipe-down
2 # wipe-down cleans up old files
3 DOWNLOADS
="$HOME/Downloads"
5 # Move anything older than 60 days to ~/Downloads/trash
6 trashdir
="/tmp/trashed_from_downloads"
8 find "$DOWNLOADS" -maxdepth 2 -type f
-mtime +60 -exec mv -f {} $trashdir \
;
10 # Delete any empty folders
11 find "$DOWNLOADS" -empty -type d
-delete