random crap of the day part one (command line)
why you should test your command before using * and -R
ex 1: gzip -r -v *
will zip every file recursively into its own archive.
ex 2: rm -f -R *.gz
will recursively remove all files with the extension gz
i realize #1 after i see all my files have been zipped. i realize #2 after i start rm -R’ing the gz’s without realizing the original copies are zipped. crap.
thank god for local backups.