For example
find /Users/xxx/Desktop/directory|grep customtext$|awk ‘{print “sed -i -e ‘\”s/aaa/bbb/g’\” ” $1}’|sh
edit content of multiple files in place on Linux
October 16, 2018 by Zhengqiu Cai
October 16, 2018 by Zhengqiu Cai
For example
find /Users/xxx/Desktop/directory|grep customtext$|awk ‘{print “sed -i -e ‘\”s/aaa/bbb/g’\” ” $1}’|sh
Leave a comment