#!/bin/sh ## ## SCRIPT: 00_fileCLeanup.sh in $HOME/Rsync ## ## PURPOSE: This script uses 'rm' to remove junk files --- especially files ## in the user's home directory --- such as thumbnail files in ## $HOME/.thumbnails/normal and in the 'cache' directory of a web browser. ## ## HOW TO USE: Typically used at computer shutdown, via a desktop icon, ## just before using a desktop icon to backup the home directory ## via an 'rsync' script. ## ## Created: 2010oct29 ## Changed: ## set -x ## FOR TESTING: (this works) # gnome-terminal -e "$HOME/Rsync/start_sh_after_exe.sh ls -al" # exit gnome-terminal -e "$HOME/Rsync/start_sh_after_exe.sh \ rm $HOME/.thumbnails/normal/*" gnome-terminal -e "$HOME/Rsync/start_sh_after_exe.sh \ rm $HOME/.mozilla/seamonkey/72w3qd2h.default/Cache/*" gnome-terminal -e "$HOME/Rsync/start_sh_after_exe.sh \ rm $HOME/.mozilla/firefox/ysz2tqya.default/Cache/*" gnome-terminal -e "$HOME/Rsync/start_sh_after_exe.sh \ rm $HOME/.seamonkey/default/Cache/*" set -