📜  bash check arg number - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:56.340000             🧑  作者: Mango

代码示例1
#For one argument 
if [ "$#" -ne 1 ]; then
    echo "Illegal number of parameters"
fi