linux下修改.sh文件格式

查看该文件:vim start.sh

不是编辑模式直接输入:set ff

查看弹出的界面  fileformat=dos  说明文本格式不对

直接set ff  = unix   就可以了

猜你喜欢

转载自www.cnblogs.com/fengzmh/p/9843041.html