title: Self deleting bash script
body: <p>How can a bash script execute even after encountering a statement to delete itself?
  For eg when I ran test.sh script which conains:</p>
  
  <pre><code>&lt;--some commands--&gt;
  rm test.sh
  &lt;--some more commands--&gt;
  
  end
  </code></pre>
  
  <p>The script executes till the end before deleting itself</p>