星期三, 3月 08, 2017

[ Linux ] xargs 用法



用find指令來搭配的話:
/ # find -name *.pl | xargs chmod +x

或者用grep來使用:
/ # find . -name '*.c' | xargs grep 'stdlib.h'

/ # find –type d –name tests –exec rm –f {} \;

Ref

沒有留言: