#!/bin/bash
garbage_folder="/home/yourUserName/garbage"
case $1 in
-ll) echo "Contents of $garbage_folder" &&
echo "" &&
ls -lah $garbage_folder &&
echo "" &&
tree $garbage_folder;;
-tree) sudo tree $garbage_folder;;
-empty) sudo rm -rv $garbage_folder/* &&
echo "rm -rv Complete";;
-destroy) sudo srm -rv $garbage_folder/* &&
echo "srm -rv (Secure Remove) Complete";;
"") echo '"garbage foo" or "garbage foobar/" will send your file or folder to the garbage.';
echo 'Use "garbage -ll" or "garbage -tree" to see what is in the garbage.';
echo '"garbage -empty" or "garbage -destroy" will make the garbage go away. Be careful.';
echo '"garbage" is a script in /usr/local/bin';;
*) mv $1 $garbage_folder &&
echo "Your garbage was moved to $garbage_folder";;
esac