Bash脚本编写
摘要:注意事项: 1. 赋值不能有空格 name=13 2. 判断语句 【】前后要有空格 3. ``和$()效果一样 4. 执行命令会fork 子shell,所以要加上足够长的sleep,确保上一个子shell退出 log(){ lvl=$1 msg=$2 current_date=$(date +"%Y
阅读全文
posted @ 2023-06-29 11:43
posted @ 2023-06-29 11:43
posted @ 2023-06-27 11:46
posted @ 2023-06-09 09:42