title: Linux cut command - capture string between multiple positions
body: <p>I have a text file containing very long lines.  I want to get only parts of the file by specifying several positions. </p>
  
  <p>I tried <code>cut</code> but it seems to give just the opposite reverse of what I need; it captures only what I don't want. </p>
  
  <p>My cut code:</p>
  
  <pre><code>/bin/cat file.txt | /usr/bin/cut -f50-62,3414-5706427
  </code></pre>
  
  <p>My expected result is to have the entire file except for characters 50-62 and characters 3414-5706427. </p>
  
  <p>I've also thought of <code>sed</code> but found no way to make <code>sed</code> get me out just the data I need. Is there any Linux command to reverse the result?</p>