Ubuntu – bash escaping and find command

bashcommand linefindregex

I trying to remove boring \-escaping from this command:

find . \( -name '*.mp3' -o -name '*.jpg' \) -print

by wrapping it in single quotes:

find . '( -name *.mp3 -o -name *.jpg )' -print

implying that arguments go straight to the find without any expansions.

However the output is different.

Best Answer

find . -name '*.mp3' -o -name '*.jpg' -print