find 查出的結果,執行多個指令。使用 2個 -exec
find
accepts multiple -exec
portions to the command. For example:
find . -name "*.txt" -exec echo {} \; -exec grep banana {} \;
資料來源
How can I use two bash commands in -exec of find command?
find -exec with multiple commands
https://stackoverflow.com/questions/5119946/find-exec-with-multiple-commands