title: How can I remove text between 2 strings in Unix
body: <p>Using UNIX commands, how do I reach my desired output that will shorten the postcode to just the first part?</p>
  
  <p>I have tried <code>sed</code> command but can't get it to work.</p>
  
  <p><strong>Input:</strong> </p>
  
  <pre><code>"970000","SW3 2BZ","F","N","L","","LONDON"
  "280000","SW5 9JZ","F","N","L","","LONDON"
  "103000","CF35 3BG","S","N","F","RUMNEY"
  </code></pre>
  
  <p><strong>Desired Output:</strong></p>
  
  <pre><code>"970000","SW3","F","N","L","","LONDON"
  "280000","SW5","F","N","L","","LONDON"
  "103000","CF35","S","N","F","RUMNEY"
  </code></pre>