shell脚本 判断命令 shell中提供了test [ [[ 三种符号,可用于: 整数测试 字符串测试 文件测试 语法: text condition [condition] [[condotion]]
循环 1.while循环 while condition ;do 程序段;dnoe 2.until循环 until comdition;do 程序段; done 3.for循环 for var in [words...]; do 程序段;done
模块化 source [函数库的路径]
shell展开 1.大括号展开 2.波浪号展开 3.参数展开 4.命令替换 5.数学计算 6.文件名展开
调试 1.普通log,使用echo printf 2.使用set命令 3.vscode debug插件