Trailing arguments with find -exec {} +

前端 未结 1 1178
刺人心
刺人心 2021-01-26 03:56

I want to add a trailing argument to the appending version of the-exec option of find.

find . -exec echo {} asd +
# expecting the foll         


        
1条回答
  •  被撕碎了的回忆
    2021-01-26 04:40

    find . -exec sh -c 'echo "$@" asd' _ {} +
    

    0 讨论(0)
提交回复
热议问题