Linux(十八):vi中如何实现批量替换
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
Linux vi中如何实现批量替换
一、将文件中的所有字符a换成字符b,其命令为:%s/a/b/g
1、vi tihuan
2、按esc键
3、按:
4、在:后输入 %s/a/b/g
其中s为:substitute,%表示所有行,g表示global
二、替换3到5行之间的,其命令如:
前几步同上,最后一步为:
s3,5s/a/b/




A beautiful web dashboard for Linux
最近提交(Master分支:19 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)