我需要检查输入参数是否存在.我有以下脚本
if [ "$1" -gt "-1" ] then echo hi fi
我明白了
[: : integer expression expected
如何首先检查输入参数1以查看它是否存在?
bash shell
bash ×1
shell ×1