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

后端 未结 5 985
慢半拍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:33

    The character string "{}" will be replaced by the current file being processed. The escaped semi-colon terminates the command argument for the -exec option.

提交回复
热议问题