title: Show lines which does not contain specific string on Linux
body: <p>I have a text file on my Linux server with these characters:</p>
  <pre><code>  ID              DATA
  MF00034657,12435464^DRogan^DPUM-DT_MAX_1234;PUM-DT_MAX_1234;PUM-DT_MAX_1234;PUM-DT_MAX_1234;PUM-DT_MAX_1234;M-DT_MAX_1;
  MF00056578,12435464^DRogan^DPUM-DT_MAX_1234;PUM-DT_MAX_1234;PUM-DT_MAX_1234;PUM-DT_MAX_1234;PUM-DT_MAX_1234;UM-DT_MAX_123;
  </code></pre>
  <p>Now I need to filter the lines which do not contain &quot;PUM-DT_MAX_1234&quot; and save them in another file with the ID.</p>
  <p>Like this:</p>
  <pre><code>MF00034657,M-DT_MAX_1
  MF00056578,UM-DT_MAX_123
  </code></pre>
  <p>I use:</p>
  <pre><code>grep -v 'PUM-DT_MAX_1234' file &gt; file.out
  awk '!/PUM-DT_MAX_1234/' file &gt; file.out
  </code></pre>
  <p>But it doesn’t work.</p>
  <p>How can I fix it?</p>