
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
Case insensitive list remove call
Mvbackupfiles - a script to "delete" back autosaved backup files
Furious and deprived by 'rm *'
pwdf - a mix of ls and pwd
Catching a carriage return in bash
Read in passwords with bash
ztar - my wrapper on tar -z
type - Writing shell scripts
"Confessions of a College Callgirl" is the new "My Secret Life As A Prostitute"
Next:
See you at PyCon 2008
Related blogs
Case insensitive list remove call (part II)Case insensitive list remove call
Mvbackupfiles - a script to "delete" back autosaved backup files
Furious and deprived by 'rm *'
pwdf - a mix of ls and pwd
Catching a carriage return in bash
Read in passwords with bash
ztar - my wrapper on tar -z
type - Writing shell scripts
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
Tweet


Save this page in del.icio.us
rm -f foobar.html will not complain if the file doesn't exist