1
Chris_Ys 2012-05-28 12:53:29 +08:00
替换字符串,我一般用正则替换:
:%s /pattern/new_string/gc |
2
qiukun OP |
3
cy527300280 2012-05-28 12:59:23 +08:00 1
:%s###
|
4
qiukun OP # 也可以替换为任意字符
|
5
gavingeng 2012-05-28 23:30:51 +08:00
:%s/xxx/xxxx/g
要么sed sed -i.bak 's/xxx/xxxx/g' $file |