How do I test complex expressions with bash?

Posted by router on Server Fault See other posts from Server Fault or by router
Published on 2010-05-30T04:37:04Z Indexed on 2010/05/30 4:42 UTC
Read the original article Hit count: 319

Filed under:
|

I can only do simply expressions like 1=1 and 0=1

test 1 = 1 -a 0 = 1 

But how to do complex expressions like 1=1 and (0=1 or 1=1) ?

© Server Fault or respective owner

Related posts about linux

Related posts about bash