What is “-le” in shell script?
问题 I am going through this code. I would like to know what is meant by -le in the following code segment. if [ $stage -le 2 ]; then In one of the questions it says that -le stands for <= of strings, but that is in Perl. Is it the same here as well? Further, I would like to know if that $stage variable automatically gets updated. It has been initialized to 0 at the beginning, but later, how does that get incremented? 回答1: -le checks if the value of left operand is less than or equal to ( <= ) the