on-internet
← Community

grouping predicates in find

Stack Overflow ·

This part \( -name *txt -o -name *html \) confuses me in the code: find $HOME \( -name \*txt -o -name \*html \) -print0 | xargs -0 grep -li vpn Can someone explain the the brackets and -o? Is -o a command or a parameter? I know the brackets are escaped by \, but why are they for?

Comments

Sign in or sign up to comment and upvote.

No comments yet.