find ./ -name 'foo*' | while read i ; do echo $i ; done find . -name '* *' -print0 | xargs -0 -n 1 -I % echo % rocks