sed command failing on Mac, but works on Linux [stackoverflow]

来源:互联网 发布:freebsd和linux那个好 编辑:程序博客网 时间:2024/06/05 06:36

Sed 在linux 和 mac 运行的不同

I've succesfully used the following sed command to search/replace text in Linux:

sed -i 's/old_link/new_link/g' *

However, when I try it on my Mac OS X, I get:

"command c expects \ followed by text"


http://stackoverflow.com/questions/4247068/sed-command-failing-on-mac-but-works-on-linux