vi

vi check.sh
//查看当前文件编码
:set ff?
//将编码格式转换为unix
:set fileformat=unix
//在当前文件中搜索'cp'字符串
/cp
//删除当前行
esc, shift + dd

posted @ 2015-12-19 11:52  LAUHank  阅读(104)  评论(0编辑  收藏  举报