Linux_Bash_Tips

 

#!/bin/bash

a=2462620
b=2462620

if [ "$a" -eq "$b" ];then
  echo "They're equal";
fi
-eq # equal
-ne # not equal
-lt # less than
-le # less than or equal
-gt # greater than
-ge # greater than or equal

Add a Comment

电子邮件地址不会被公开。 必填项已用*标注

20 + 1 =