find . -name '*.foo' | shloop -e 'doit -switches'