阅读背景:

sed命令用特殊字符替换带有特殊字符的字符串

来源:互联网 

I have a string with special characters called /data/user/sam and I want to replace it with /data/sam and write it in a text file called sample.txt. I am able to do so but it keeps on appending the result in sample.txt on running the command again. It should replace it whole each time instead of appending. I have a string with special characters called




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: