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 (printed
and notprinted
, respectively):
$ 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 printed
.
What's going on here?