How to build a conditional assignment in bash?

Posted by Neuquino on Stack Overflow See other posts from Stack Overflow or by Neuquino
Published on 2010-03-14T02:13:50Z Indexed on 2010/03/14 2:25 UTC
Read the original article Hit count: 284

Filed under:

I'm looking a way to build conditional assignments in bash:

In Java it looks like this:

int variable= (condition) ? 1 : 0;

Thanks in advance

© Stack Overflow or respective owner

Related posts about bash