shell
孤独王者¥
一个平平无奇的菜鸟程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shell 批量命令执行写法
例子:注意空格哦 if [[ -f "/home/01" ]]; then echo "ok"; else echo "no"; fi原创 2019-01-08 12:56:36 · 910 阅读 · 0 评论 -
shell脚本for循环使用
#!/usr/bin/env bash base="/app" levels=("debug" "sql" "audit" "access" "info" "warning" "error" "critical" "uwsgi") # 创建日志级别目录 for level in "${levels[@]}" ; do logdir="${base}/${level}log" ...原创 2019-07-08 14:19:32 · 423 阅读 · 0 评论
分享