kook555 于 2010-04-28 15:15:03发表:
好的,非常感谢,我已经测试成功! cat test && sed 's/"http:/\\"http:/g' test aaa "http: bbb "http: ccc "http: aaa \"http: bbb \"http: ccc \"http:
duo2752 于 2010-04-28 10:44:57发表:
sed 's/\"http/\\\"http/g' < 1.txt 其中1.txt 为 aaa "http: bbb "http: ccc "http: 要保存结果重定向一下就好了
rainsome 于 2010-04-28 10:37:16发表:
sed -e 's,\("http\),\\\1,g'
kook555 于 2010-04-28 15:15:03发表:
好的,非常感谢,我已经测试成功!
cat test && sed 's/"http:/\\"http:/g' test
aaa "http:
bbb "http:
ccc "http:
aaa \"http:
bbb \"http:
ccc \"http:
duo2752 于 2010-04-28 10:44:57发表:
sed 's/\"http/\\\"http/g' < 1.txt
其中1.txt 为
aaa "http:
bbb "http:
ccc "http:
要保存结果重定向一下就好了
rainsome 于 2010-04-28 10:37:16发表:
sed -e 's,\("http\),\\\1,g'