shell脚本头部添加自定义标识
vim /etc/vimrc
添加如下代码
function WESTOS()
call append(0,"#################################")
call append(1,"# Author: yuan #")
call append(2,"# Create_Date: “.strftime(”%Y-%m-%d")." #")
call append(3,"# Version: 1.0 #")
call append(4,"#################################")
endfunction
然后再创建script文件