title: using && and || in multiline bash script
body: <pre><code>echo hello; echo hi
  </code></pre>
  
  <p>is identical to this in a script:</p>
  
  <pre><code>echo hello
  echo hi
  </code></pre>
  
  <p>How do I do the same to the following possibilities?</p>
  
  <pre><code>echo hello &amp;&amp; echo hi
  echo hello || echo hi
  </code></pre>
  
  <p>I presume I can do this:</p>
  
  <pre><code>echo hello &amp;&amp; \
  echo hi
  
  echo hello || \
  echo hi 
  </code></pre>
  
  <p>But this is more or less imitating a multi-line script</p>
  
  <p>What is the appropriate way of doing this?</p>
  
  <p>edit: I am aware of how &amp;&amp; and || work, I am just wondering how to effectively replicate it in a multi-line script</p>