]>
git.rmz.io Git - dotfiles.git/blob - bin/old/rmold
   4 # This script will remove all files/folders older than 2 weeks in the ~/Downloads 
   8 rm /Users
/ramsi
/Downloads
/*.torrent
 
  10 find $HOME/Downloads 
-atime +28 -depth 1 -print | while read FILE
; do 
  12         # Adds support for files with spaces. 
  13         cmd
="mv \"$FILE\" $HOME/.Trash"; 
  15         # Parses the line twice to remove the external quotes. 
  19         echo "`date \"+%Y-%m-%d\"` removed $FILE" >> /var
/log
/rmold.log
;