1

This question already has an answer here:

I noticed in the man pages for find, that the {} always have single quotes around them.

find -exec '{}' \;

The description states:

Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation. The semicolon is simi- larly protected by the use of a backslash

I have never had an issue using just find -exec {} \;
What is an example where the single quotes are required.

marked as duplicate by slm, jasonwryan, jordanm, user26112, Gilles Jul 25 '13 at 2:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • My persoal find usage is very rudimentary, but I habitually backslash the curly brackets: find . -exec whatever \{\} \; – Bruce Ediger Jul 25 '13 at 0:51
  • See Gilles answer on the duplicate question, he covers it there. – slm Jul 25 '13 at 0:53

Browse other questions tagged or ask your own question.