title: Shell - run bunch of commands in IF else
body: <p>I would like to prepare a shell script, that will execute my all commands if my all commands went success then it'll print "SUCCESS" and any one single command failed then print "FAILED".</p>
  
  <p>My shell script commands:</p>
  
  <pre><code>cd /home/lin
  
  mkdir logs
  
  cp /tmp/filelog.log logs/
  
  rm /tmp/log*
  
  touch /tmp/log
  </code></pre>
  
  <p><strong><em>Save this file test.sh</em></strong></p>
  
  <p>Here is my query,</p>
  
  <p>While executing this, if any one of my commands failed then it should stop execution and print "Failed"</p>
  
  <p>Else print "SUCCESS"</p>