Shell脚本中判断输入变量或者参数是否为空的方法 1 判断变量 复制代码 代码如下: read -p "input a word : " word if [ ! -n "$word " ] ;then Linux Shell 2022-04-07 167 点赞 2 评论 253 浏览