Using awk to remove lines containing a string in two columns of line
<p>I have my input like this:</p>

<pre><code>gi|88193823|ref|NC_007795.1|:3070-3370 gi|387601291|ref|NC_017333.1|:297226-297526 0.361403508772
gi|387601291|ref|NC_017333.1|:216167-216467 gi|88193823|ref|NC_007795.1|:2735510-2735810 0.386440677966
gi|88193823|ref|NC_007795.1|:1278679-1278979 gi|88193823|ref|NC_007795.1|:2735510-2735810 0.392491467577
</code></pre>

<p>I want output by removing the line containing <code>007795</code> in both column 1 and 2. </p>

<p>Expected output:</p>

<pre><code>gi|88193823|ref|NC_007795.1|:3070-3370 gi|387601291|ref|NC_017333.1|:297226-297526 0.361403508772
gi|387601291|ref|NC_017333.1|:216167-216467 gi|88193823|ref|NC_007795.1|:2735510-2735810 0.386440677966
</code></pre>

<p>I tried </p>

<pre><code>awk '! ( $1 == "/007795/" &amp;&amp; $2 == "/007795/" )' 1.txt &gt; 1.temp
</code></pre>

<p>I don't know where I am going wrong. Please help me </p>