用到的工具:vim linux
批量注释linux shell
1.将/etc/passwd文件复制一份,当做此次操作的文件。

2.Ctrl + v 进入块选择模式,可用向上向下键来选择要注释的行,

3.输入大写的i(I)进入首行编译,输入#或者//注释符号,输入完毕之后,按两下ESC,Vim会自动将你选中的所有行首都加上注释,保存退出完成注释。
批量取消linux shell注释


用到的工具:vim linux
批量注释linux shell
1.将/etc/passwd文件复制一份,当做此次操作的文件。
2.Ctrl + v 进入块选择模式,可用向上向下键来选择要注释的行,
3.输入大写的i(I)进入首行编译,输入#或者//注释符号,输入完毕之后,按两下ESC,Vim会自动将你选中的所有行首都加上注释,保存退出完成注释。
批量取消linux shell注释
本文标题:linux shell批量注释
本文链接:https://www.haomeiwen.com/subject/qhcohqtx.html
网友评论