一堆eps文件要将每个文件单独压缩成一个文件,比如a.eps , b.eps, c.eps 压缩成 a.zip ,b.zip ,c.zip for…
November 11, 2015
sed 执行错误:sed: 1: “…”: Invalid command code f
运行
grep -l \'texttofind\' * | xargs sed -i 's/toreplace/replacewith/g'
Im getting this error when I run the above command in the terminal.
sed: 1: "forkliftDailyChecklistW ...": invalid command code f
解决:
I figured out what was wrong. I needed to add ''
after the -i
and before the 's/../../'
:
grep -l \'texttofind\' * | xargs sed -i '' 's/toreplace/replacewith/g'
转自:http://stackoverflow.com/questions/29081799/sed-1-invalid-command-code-f
更多参考:
本文:sed 执行错误:sed: 1: “…”: Invalid command code f