【发布时间】:2013-04-29 18:05:07
【问题描述】:
我需要运行 sed -e 'command' -e 'command' file.txt,但我在 mac 上收到此错误:sed: -e: No such file or directory。知道如何解决这个问题吗?
【问题讨论】:
-
在这里工作正常 - 你能显示你正在使用的确切命令吗?
-
sed -i -e "s/\.$REGIONID\./\./" -e "/\.$NONREGIONID\./d" application.conf
-
你不能在没有扩展名的情况下使用
-i,而且你的第二个-e不是以命令开头的。 -
第二个
-e对我来说很好:它以地址开头,然后是命令。完全有效。 -
是的 - 阅读而不理解。谢谢!