$ find /usr/home/foobar -name *.foo | xargs doit -switches