我正在使用SunOS 10。
我正在尝试在SunO上替换该:行末尾的字符,:我正在使用以下命令。
:
echo -n "test:" | sed 's/:$//g'
它不起作用。我在这里做错了什么?
在GNU / Linux中也可以正常工作。
linux solaris sed
linux ×1
sed ×1
solaris ×1