The Unix shell is generally fantastic, but working with
files with spaces in the name is a nuisance. Tools
think the spaces are delimiters and break up your filename. Ie, these
don't work if you have a file named foo bar.tmp:
rm `ls | grep tmp`
One option is to manipulate IFS. Another is
xargs -0:
ls | grep tmp | xargs rm
ls | grep tmp | tr '\012' '\000' | xargs -0 rm
This is particularly good with find -print0
|