| |
---|
| | { |
---|
| | echo "usage: trm.sh -cehistvx -g graveyard [file|dir] ..." |
---|
| | echo " where," |
---|
| | echo " -c copy targets to graveyard, don't remove them" |
---|
| | echo " -e empty the current graveyard (permanent removal" |
---|
| | echo " -e empty the current graveyard (permanent removal)" |
---|
| | echo " -h display this help screen" |
---|
| | echo " -g graveyard use named graveyard instead of default" |
---|
| | echo " -i interactive removal/copy" |
---|
| | echo " -s don't generate serial number suffixes" |
---|
| |
---|
| | ;; |
---|
| | |
---|
| | # Empty the graveyard |
---|
| | e) |
---|
| | rm -rf ${VERBOSE} ${GRAVEYARD}/* ${GRAVEYARD}/.[-z]* |
---|
| | if [ -z "${TESTMODE}" ] |
---|
| | then |
---|
| | rm -rf ${VERBOSE} ${GRAVEYARD}/* ${GRAVEYARD}/.[-z]* |
---|
| | fi |
---|
| | ;; |
---|
| | |
---|
| | # Name your own graveyard |
---|
| | g) |
---|
| |
---|
| | |