小编Ser*_*io 的帖子

shell 脚本中的运算符 `-gt` 是什么意思?

嗨,我有这句话,我想知道它是什么意思。

if [[ -z "$1" ]]; then   #  --> this is if the value of the parameter $1 is zero
    PASO=1
elif [[ "$1" -gt 1 ]] ; then  # but i don't know what this flags mean? .."-gt"
    LOG "[$(date +%T)] Parametros incorrectos"
    exit 255
else
    PASO=$1
fi
Run Code Online (Sandbox Code Playgroud)

什么-gt意思?

shell shell-script test

9
推荐指数
2
解决办法
2万
查看次数

标签 统计

shell ×1

shell-script ×1

test ×1