title: Shell script that iterates through a sql "delete" statement
body: <p>I need a shell script that deletes 1000 rows from a massive database until <strong>there is no more rows left</strong></p>
  
  <p>It is very simple, but i am very weak in shell scripting, and the many tutorials online offer extremely similar, but different nuances in syntax</p>
  
  <p>UPDATE:</p>
  
  <ul>
  <li>Would it be possible to get some sample code? </li>
  <li>I need to delete 1000 rows at a time</li>
  <li>I have 120 Million rows to delete in total, and deleting them all at once will lock up the DB</li>
  </ul>