title: How to build a conditional assignment in bash?
body: <p>I'm looking a way to build conditional assignments in bash:</p>
  
  <p>In Java it looks like this:</p>
  
  <pre><code>int variable= (condition) ? 1 : 0;
  </code></pre>