Author: techfox9

Bash comparison operators ..

Wednesday, September 21st, 2011 @ 4:09 pm

bash Comparison Operators ..

Some of them:

compound comparison

-a logical and

exp1 -a exp2 returns true if both exp1 and exp2 are true.

-o logical or 

exp1 -o exp2 returns true if either exp1 or exp2 is true.

.. and more ..

http://tldp.org/LDP/abs/html/comparison-ops.html

Linux


 


Comments are closed.