判断参数是否为空#!/bin/sh if [ ! -n "$1" ]; then echo "IS NULL" else echo "NOT NULL" fi
shell编程总结
原文:https://www.cnblogs.com/xhuangtao/p/11241859.html