title: How to delete history of last 10 commands in shell?
body: <p>Commands follows </p>
  
  <pre><code>  511  clear
    512  history
    513  history -d 505
    514  history
    515  history -d 507 510 513
    516  history
    517  history -d 509
    518  history
    519  history -d 511
    520  history
  </code></pre>
  
  <p>I can delete single one by <code>history -d 511</code>, but how to delete last 10 commands and in between 10 commands history using single command in shell?</p>
  
  <p>Can we write a bash script and execute for deletion of history?</p>