Try find . -name '*\.moc.cpp' -print I would say the astericks is expanding and find is interpreting the extra files and dirs as paths. >$ find . -name *\.moc.cpp -print >find: paths must precede expression >Usage: find [path...] [expression] > >What is wrong with what I am trying to do? >