layout: post title: “shell cmd” categories: tools
tags: shell
shell命令格式化显示json文件
cat config.json |python -mjson.tool
bash脚本中set命令
-
set -e Exit immediately if a command exits with a non-zero status 设置了set -e 后的代码,一旦检测到有命令的返回为非零值,则脚本退出
-
set -u Treat unset variables as an error when substituting 脚本在替换变量时,如果遇到未定义的变量,则失败
help set