I\'m trying to do something like the following:
for file in `find . *.foo` do somecommand $file done
But the command isn\'t working because
Instead of relying on the shell to do that work, rely on find to do it:
find . -name "*.foo" -exec somecommand "{}" \;
Then the file name will be properly escaped, and never interpreted by the shell.