
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com
Mobile version of this page
Previous:
"Confessions of a College Callgirl" is the new "My Secret Life As A Prostitute"
Next:
See you at PyCon 2008
ztar - my wrapper on tar -z
type - Writing shell scripts
Catching a carriage return in bash
pwdf - a mix of ls and pwd
Bash tip of the day: ff
Furious and deprived by 'rm *'
Mvbackupfiles - a script to "delete" back autosaved backup files
Case insensitive list remove call
Case insensitive list remove call (part II)
"Confessions of a College Callgirl" is the new "My Secret Life As A Prostitute"
Next:
See you at PyCon 2008
Related blogs
Read in passwords with bashztar - my wrapper on tar -z
type - Writing shell scripts
Catching a carriage return in bash
pwdf - a mix of ls and pwd
Bash tip of the day: ff
Furious and deprived by 'rm *'
Mvbackupfiles - a script to "delete" back autosaved backup files
Case insensitive list remove call
Case insensitive list remove call (part II)
Related by category
File check before delete
6th of March 2008
Because I always forget, here's how to check if a file exists before attempting to delete it in bash:
[ -f foobar.html ] && rm foobar.html
If you don't do it this way and the file doesn't exist you get this:
rm: cannot remove `foobar.html': No such file or directory


rm -f foobar.html will not complain if the file doesn't exist