更改

跳转至: 导航搜索

在vi中进行批量替换

添加412字节, 2018年11月29日 (四) 18:56
无编辑摘要
在vi(vim)中可进行 批量替换 1.输入“vim anaconda-ks.cfg”打开一个文件。 备注:亦可输入“vi anaconda-ks.cfg”。[[File:ViBatchR1.png]]  2.文件内容如下。[[File:ViBatchR2.png]]  3.按两次Esc键并输入“:%s/sourceSystem/targetWindows/g”并按回车键。[[File:ViBatchR3.png]]  4.替换效果如下,所有“System”已经被替换为“Window”。[[File:ViBatchR4.png]] 5.如需进行单个
1,138
个编辑

导航菜单