Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It took me a while to figure out `-o`. You need to use `\(` `\)`

    find . -type f \( -name \*.c -o -name \*.cc -o -name \*.cpp \)


That was also my understanding, but even with that I don't think I ever ended up getting such an expression right.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: