当使用sed对目录进行的操作的时,最好将分隔符改为冒号':'
eg:
pwd='/usr/local/tomcat'
sed -i 's:$pwd:$pwd/bin' test.file
转载于:https://blog.51cto.com/junly917/1726938
当使用sed对目录进行的操作的时,最好将分隔符改为冒号':'
eg:
pwd='/usr/local/tomcat'
sed -i 's:$pwd:$pwd/bin' test.file
转载于:https://blog.51cto.com/junly917/1726938