title: Editing netcat output before writing to txt file
body: <p>I am trying to edit the output of netcat before writing it to a txt file. </p>
  
  <p>The following command does not seem to work:</p>
  
  <pre><code>nc -l 1240 | cut -d “;” -f 1 &gt; textfile.txt
  </code></pre>
  
  <p>when i break it into two parts it works fine eg</p>
  
  <pre><code>nc -l 1240 | -d “;” -f 1
  </code></pre>
  
  <p>works, and </p>
  
  <pre><code>nc -l 1240 2&gt;&amp;1 &gt; textfile.txt
  </code></pre>
  
  <p>works fine too</p>
  
  <p>but when i string them together it does not work.
  any thoughts appreciated
  thanks</p>