当前位置: 技术问答>linux和unix
solaris sed 替换无效
来源: 互联网 发布时间:2017-05-18
本文导语: sed -e s/dhcp.relay.unicast=.*/dhcp.relay.unicast=true/g deploy-dhcp-relay-config.bak > deploy-dhcp-relay-config.properties 如上语句,生成的deploy-dhcp-relay-config.properties 是空文件 | sed 's/dhcp.relay.unicast=.*/dhcp.relay.unicast=true/g' de...
sed -e s/dhcp.relay.unicast=.*/dhcp.relay.unicast=true/g deploy-dhcp-relay-config.bak > deploy-dhcp-relay-config.properties
如上语句,生成的deploy-dhcp-relay-config.properties 是空文件
如上语句,生成的deploy-dhcp-relay-config.properties 是空文件
|
sed 's/dhcp.relay.unicast=.*/dhcp.relay.unicast=true/g' deploy-dhcp-relay-config.bak > deploy-dhcp-relay-config.properties
/usr/xpg4/bin/sed 's/dhcp.relay.unicast=.*/dhcp.relay.unicast=true/g' deploy-dhcp-relay-config.bak > deploy-dhcp-relay-config.properties