title: Removing carriage returns on the line prior to match (using sed, tr or awk)
body: <p>I'm looking for a way to remove carriage returns on the line <em>prior</em> to the sed match. For example, I'd like to remove the carriage return prior to any instance of "[". </p>
  
  <p>Sample input:</p>
  
  <pre><code>MESSAGE: Location
  latitude
  [-Pi/4,Pi/4]
  longitude
  [-Pi,Pi]
  altitude
  [10000,120000]
  </code></pre>
  
  <p>Sample output:</p>
  
  <pre><code>MESSAGE: Location
  latitude [-Pi/4,Pi/4]
  longitude [-Pi,Pi]
  altitude [10000,120000]
  </code></pre>
  
  <p>Any suggestion using sed, tr or awk would be appreciated. Thanks.</p>