标签:post 判断 log col blog 判断为空 style name echo
判断参数是否为空-空退出并打印null
#!/bin/sh echo $1 name=${1:?"null"} echo $name
shell 判断为空打印
原文地址:https://www.cnblogs.com/sharesdk/p/8710133.html