find src/ -name "*.cc" -o -name "*.cpp" -print find src/ -name "*.cc" -o -name "*.cpp"
The intended behavior is to find all C++ files in a directory and all its subdirectories. As I understood it, the -print command was the default. However, these two commands give me significantly different results. If I redirect them to a file (
$ wc -l printed notprinted 1813 printed 1979 notprinted
Diffing each sorted file doesn't help me much. There's no clear pattern for what's excluded from
What's going on here?