0

sed -i 在 macOS 下面不起作用

monster created at6 years ago view count: 2579

sed -i 's/function1/function2/p' i.html

report
回复
0

macOS 和 以前的 OSX 下面和Linux 不一样的。 sed -i '' 's/function1/function2/p' i.html 加个 '' 在 -i 后面即可生效。

6 years ago 回复

相关搜索关键词