title: Linux cut string
body: <p>In Linux (Cento OS) I have a file that contains a set of additional information that I want  to removed. I want to generate a new file with all characters until to the first <code>|</code>.</p>
  
  <p>The file has the following information:</p>
  
  <pre><code>ALFA12345|7890
  Beta0-XPTO-2|30452|90 385|29
  ZETA2334423 435; 2|2|90dd5|dddd29|dqe3
  </code></pre>
  
  <p>The output expected will be:</p>
  
  <pre><code>ALFA12345
  Beta0 XPTO-2
  ZETA2334423 435; 2
  </code></pre>
  
  <p>That is removed all characters after the character <code>|</code> (inclusive).</p>
  
  <p>Any suggestion for a script that reads  <code>File1</code> and generates <code>File2</code> with this specific requirement?</p>