Linux 脚本

01、第一个脚本  =>

    (1)、vi  hello.sh

       #!/bin/Bash : 不是注释也不能省略,表示写的是shell脚本

       echo   写入脚本内容

       保存退出;

    (2)、执行脚本的方法

       给脚本赋予执行命令 : chmod 755 hello.sh

       可以用相对路径或者绝对路径执行: ./hello.sh

    (3)、dos2unix  脚本名 

         windows下编译的脚本转换成Linux下的脚本

原文地址:https://www.cnblogs.com/patriot/p/7884766.html