Unix find command, what are the {} and \; for?

后端 未结 5 988
慢半拍i
慢半拍i 2020-11-28 15:22

With this set of commands, what are the {} and \\; characters for?

find . -name \'*.clj\' -exec grep -r resources {} \\;
         


        
5条回答
  •  情话喂你
    2020-11-28 15:34

    Consider this alternative command which I find easier to understand:

    find . -name *.clj | xargs grep -r resources 
    

提交回复
热议问题