grep word from column and remove row
<p>I want to <code>grep</code> a word from particular column from a file. Then remove those rows put all remaining rows into another file.
could anyone please help me on shell command to get following output?</p>

<p>I have a file with this format:</p>

<pre><code>1234     8976     897561234   1234  678901234
5678     5678     123456789   4567  123456790
1234     1234     087664566   4567  678990000
1223     6586     212134344   8906  123456789
</code></pre>

<p>I want to grep word "1234" in the second column alone and removed those rows alone and put remaining rows in another file. So output should be in this format:</p>

<pre><code>1234     8976     897561234   1234  678901234
5678     5678     123456789   4567  123456790
1223     6586     212134344   8906  123456789
</code></pre>

<p>The out should be with 3 rows except 3 row out of 4 rows.</p>

<pre><code>while read value ;do
  grep -v  ${value:0:10} /tmp/lakshmi.txt &gt; /tmp/output.txt
  cp /tmp/output.txt /tmp/no_post1.txt
done &lt; /tmp/priya.txt
</code></pre>

<p>Could you please help me to modify this script?</p>