title: SQL string formatter
body: <p>Does anyone know of a program, a utility, or some programmatic library, preferably for Linux, that takes an unformatted SQL string and pretty prints it?</p>
  
  <p>For example I would like the following</p>
  
  <pre><code>select * from users where name = 'Paul'
  </code></pre>
  
  <p>be changed to something like this</p>
  
  <pre><code>select * 
  from users
  where
     name = 'Paul'
  </code></pre>
  
  <p>The exact formatting is not important.
  I just need something to take a large SQL string and break it up into something more readable.</p>