bash/比較演算子
Posted: | Categories: bash | Tags: bash, 比較演算子
bash の比較演算子の意味 - enokitech bash であれば [[ ! -d /var/tmp ]] のような 2 重カッコを使うことで、否定ができる 演算子 英語 記号 -lt Less than < -gt Greater than > -le Less than or Equal to <= -ge Greater than or Equal to >= -eq Equal to = -ne Not equal to != 文字列比較 = 左項と右項が同一文字列の場合真 ! Read more...