随笔分类 - shell 脚本
摘要:新建shell脚本 新建一个文件 test.sh,扩展名为 sh。 输入一些代码,第一行一般是这样: 像 #!/bin/sh,它同样也可以改为 #!/bin/bash。 #! 告诉系统其后路径所指定的程序即是解释此脚本文件的 Shell 程序。 实例#!/bin/bashecho "Hello Wo
阅读全文
摘要:去除 .sh 文件的\n \r 并执行脚本 sed -i 's/\r//' copy_upgrade.sh && bash copy_upgrade.sh 去除 .sh 文件的\n \r sed -i 's/\r//' upgrade.sh
阅读全文
摘要:Notepad++ 设置 1) 编码 -> 使用UTF-8编码 2) 编辑 -> 文档格式转换,转换为UNIX格式
阅读全文

浙公网安备 33010602011771号