<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to grep for tab spaces? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736481#M255404</link>
    <description>I have a file with 25k lines in it.&lt;BR /&gt;&lt;BR /&gt;I have another file with 100 lines in it.&lt;BR /&gt;&lt;BR /&gt;I want to remove lines from the 25k file that contain the line from the 100 line file.&lt;BR /&gt;&lt;BR /&gt;25k file is like this&lt;BR /&gt;&lt;BR /&gt;nnnnn &lt;TAB&gt;xxxxxx&lt;TAB&gt;email&lt;BR /&gt;&lt;BR /&gt;the 100 line file just has the xxxxxx entry&lt;BR /&gt;&lt;BR /&gt;the problem with just using grep is that many lines could contain the word in the 100 line file, but I just want to remove the record that has &lt;TAB&gt;xxxxx&lt;TAB&gt;.&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;25K file&lt;BR /&gt;&lt;BR /&gt;12345&lt;TAB&gt;carlot&lt;TAB&gt;email1&lt;BR /&gt;2245&lt;TAB&gt;car&lt;TAB&gt;email1&lt;BR /&gt;&lt;BR /&gt;100 line&lt;BR /&gt;&lt;BR /&gt;car&lt;BR /&gt;boat&lt;BR /&gt;apple&lt;BR /&gt;&lt;BR /&gt;I only want to remove &lt;BR /&gt;2245&lt;TAB&gt;car&lt;TAB&gt;email1&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;</description>
    <pubDate>Tue, 21 Feb 2006 17:43:34 GMT</pubDate>
    <dc:creator>Sean OB_1</dc:creator>
    <dc:date>2006-02-21T17:43:34Z</dc:date>
    <item>
      <title>How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736481#M255404</link>
      <description>I have a file with 25k lines in it.&lt;BR /&gt;&lt;BR /&gt;I have another file with 100 lines in it.&lt;BR /&gt;&lt;BR /&gt;I want to remove lines from the 25k file that contain the line from the 100 line file.&lt;BR /&gt;&lt;BR /&gt;25k file is like this&lt;BR /&gt;&lt;BR /&gt;nnnnn &lt;TAB&gt;xxxxxx&lt;TAB&gt;email&lt;BR /&gt;&lt;BR /&gt;the 100 line file just has the xxxxxx entry&lt;BR /&gt;&lt;BR /&gt;the problem with just using grep is that many lines could contain the word in the 100 line file, but I just want to remove the record that has &lt;TAB&gt;xxxxx&lt;TAB&gt;.&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;25K file&lt;BR /&gt;&lt;BR /&gt;12345&lt;TAB&gt;carlot&lt;TAB&gt;email1&lt;BR /&gt;2245&lt;TAB&gt;car&lt;TAB&gt;email1&lt;BR /&gt;&lt;BR /&gt;100 line&lt;BR /&gt;&lt;BR /&gt;car&lt;BR /&gt;boat&lt;BR /&gt;apple&lt;BR /&gt;&lt;BR /&gt;I only want to remove &lt;BR /&gt;2245&lt;TAB&gt;car&lt;TAB&gt;email1&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;</description>
      <pubDate>Tue, 21 Feb 2006 17:43:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736481#M255404</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T17:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736482#M255405</link>
      <description>Hi Sean:&lt;BR /&gt;&lt;BR /&gt;Based upon your last comment:&lt;BR /&gt;&lt;BR /&gt;# perl -lne 'print unless m{\b2245\tcar\temail1\b}' yourfile&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 21 Feb 2006 17:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736482#M255405</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-02-21T17:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736483#M255406</link>
      <description>How about this perl one liner-&lt;BR /&gt; &lt;BR /&gt;perl -ane 'print $_ if $F[1] eq "car"' yourfile&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 21 Feb 2006 17:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736483#M255406</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-02-21T17:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736484#M255407</link>
      <description>Any way to do all 100 lines at once?  Or do I have to loop through each line in the 100 line file and run the perl command?</description>
      <pubDate>Tue, 21 Feb 2006 17:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736484#M255407</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736485#M255408</link>
      <description>Since you want to remove the line, we need to use -v to print the non-matching lines. &lt;BR /&gt;&lt;BR /&gt;grep -E -v -e '&lt;TAB&gt;car&lt;TAB&gt;' &amp;lt; infile &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;You could also anchor your string for even better matching:&lt;BR /&gt;&lt;BR /&gt;grep -E -v -e '^[0-9]+&lt;TAB&gt;car&lt;TAB&gt;' &amp;lt; infile &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;Note: &lt;TAB&gt; means that you enclosed a TAB character within the quotes.&lt;BR /&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TAB&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736485#M255408</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-21T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736486#M255409</link>
      <description>&lt;BR /&gt;Note: &lt;TAB&gt; means that you enclosed a TAB character within the quotes.&lt;BR /&gt;&lt;BR /&gt;Ok, by this do you mean \t ?&lt;/TAB&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736486#M255409</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T18:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736487#M255410</link>
      <description>in my experimentation with ksh I found that &lt;BR /&gt;&lt;BR /&gt;cat myfileof25klines | grep "\&lt;TABKEY&gt;myword\&lt;TABKEY&gt;"&lt;BR /&gt;&lt;BR /&gt;yields the lines with &lt;TAB&gt;myword&lt;TAB&gt; but not the ones not surrounded by tabs.&lt;BR /&gt;&lt;BR /&gt;(&lt;TABKEY&gt; means, hit tab after typing the backslash, not literally typing as above)&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/TABKEY&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/TABKEY&gt;&lt;/TABKEY&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736487#M255410</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2006-02-21T18:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736488#M255411</link>
      <description>No, I mean you hit the single-quote key and then hit the &lt;TAB&gt; key.&lt;/TAB&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736488#M255411</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-21T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736489#M255412</link>
      <description>ok, that doesn't work in Bash.  Will try it in ksh.</description>
      <pubDate>Tue, 21 Feb 2006 18:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736489#M255412</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736490#M255413</link>
      <description>Sorry should have mentioned bash.</description>
      <pubDate>Tue, 21 Feb 2006 18:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736490#M255413</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T18:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736491#M255414</link>
      <description>Did I mention that I hate bash? Ok this construct should work:&lt;BR /&gt;&lt;BR /&gt;XX=$(echo "\011car\011")&lt;BR /&gt;grep -E -v -e "${XX}" &amp;lt; infile &amp;gt; outfile&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:16:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736491#M255414</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-21T18:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736492#M255415</link>
      <description>hmm, no luck.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;for USER in `cat /tmp/test`&lt;BR /&gt;do&lt;BR /&gt;echo $USER&lt;BR /&gt;grep -E -v -e'       $USER   ' &amp;lt; /tmp/emails.lst &amp;gt; /tmp/emails.out&lt;BR /&gt;&lt;BR /&gt;cp -f /tmp/emails.out /tmp/emails.lst&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736492#M255415</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736493#M255416</link>
      <description>The spaces in ' $USER ' are actually tab chars.</description>
      <pubDate>Tue, 21 Feb 2006 18:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736493#M255416</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T18:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736494#M255417</link>
      <description>Hi (again) Sean:&lt;BR /&gt;&lt;BR /&gt;OK, if you have a file with 100 tokens, each of which you want to delete from your first file then:&lt;BR /&gt;&lt;BR /&gt;Assuming that the first file pattern is defined as some digits followed by a tab, followed by a token (specified in the second file) followed by another tab, like:&lt;BR /&gt;&lt;BR /&gt;&lt;DIGIT&gt;&lt;TAB&gt;TOKEN&lt;TAB&gt;&lt;BR /&gt;&lt;BR /&gt;...then:&lt;BR /&gt;&lt;BR /&gt;# cat ./perl.pl&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my  %line;&lt;BR /&gt;my  $key;&lt;BR /&gt;my  $token;&lt;BR /&gt;my  $file1=shift or die;&lt;BR /&gt;my  $file2=shift or die;&lt;BR /&gt;&lt;BR /&gt;open (FH, "&amp;lt;", $file1) or die "Can't open $file1: $!\n";&lt;BR /&gt;while (&lt;FH&gt;) {&lt;BR /&gt;    chomp;&lt;BR /&gt;    $line{$.}= $_;&lt;BR /&gt;}&lt;BR /&gt;close(FH);&lt;BR /&gt;open (FH, "&amp;lt;", $file2) or die "Can't open $file2: $!\n";&lt;BR /&gt;while (&lt;FH&gt;) {&lt;BR /&gt;    chomp;&lt;BR /&gt;    $token = $_;&lt;BR /&gt;    foreach $key (keys %line) {&lt;BR /&gt;        if ($line{$key} =~m/^\d+\t$token\t/) {&lt;BR /&gt;            delete ($line{$key});&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;foreach $key (sort keys %line) {&lt;BR /&gt;    print "$line{$key}\n";&lt;BR /&gt;}&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;Run this as:&lt;BR /&gt;&lt;BR /&gt;# ./perl.pl datafile tokenfile&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/FH&gt;&lt;/FH&gt;&lt;/TAB&gt;&lt;/TAB&gt;&lt;/DIGIT&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736494#M255417</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-02-21T18:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736495#M255418</link>
      <description>hmm, still no joy.&lt;BR /&gt;&lt;BR /&gt;[root@fishgeeks tmp]# cat /usr/local/bin/sean/cleanemails.lst&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my %line;&lt;BR /&gt;my $key;&lt;BR /&gt;my $token;&lt;BR /&gt;my $file1=shift or die;&lt;BR /&gt;my $file2=shift or die;&lt;BR /&gt;&lt;BR /&gt;open (FH, "&amp;lt;", $file1) or die "Can't open $file1: $!\n";&lt;BR /&gt;while (&lt;FH&gt;) {&lt;BR /&gt;chomp;&lt;BR /&gt;$line{$.}= $_;&lt;BR /&gt;}&lt;BR /&gt;close(FH);&lt;BR /&gt;open (FH, "&amp;lt;", $file2) or die "Can't open $file2: $!\n";&lt;BR /&gt;while (&lt;FH&gt;) {&lt;BR /&gt;chomp;&lt;BR /&gt;$token = $_;&lt;BR /&gt;foreach $key (keys %line) {&lt;BR /&gt;if ($line{$key} =~m/^\d+\t$token\t/) {&lt;BR /&gt;delete ($line{$key});&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;foreach $key (sort keys %line) {&lt;BR /&gt;print "$line{$key}\n";&lt;BR /&gt;}&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@fishgeeks tmp]# /usr/local/bin/sean/cleanemails.lst /tmp/emails.lst /tmp/test &amp;gt; /tmp/emails.out&lt;BR /&gt;ll em*&lt;BR /&gt;cat emails.lst | wc -l&lt;BR /&gt;[root@fishgeeks tmp]# ll em*&lt;BR /&gt;-rw-r--r--  1 root root 1004259 Feb 21 20:20 emails.lst&lt;BR /&gt;-rw-r--r--  1 root root 1004259 Feb 21 20:25 emails.out&lt;BR /&gt;[root@fishgeeks tmp]# cat emails.lst | wc -l&lt;BR /&gt;  24594&lt;BR /&gt;[root@fishgeeks tmp]# cat emails.out | wc -l&lt;BR /&gt;  24594&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@fishgeeks tmp]# head emails.lst&lt;BR /&gt;17779   :       gemma   :       03goodenoughgem@upperavon.wilts.sch.uk&lt;BR /&gt;17322   :       Luanne  :       11402@aol.com&lt;BR /&gt;8101    :       123     :       123@aol.com&lt;BR /&gt;15075   :       Krokodil        :       12794201@puknet.puk.ac.za&lt;BR /&gt;17655   :       jc      :       14337983@sun.ac.za&lt;BR /&gt;17656   :       mariska :       14378574@sun.ac.za&lt;BR /&gt;17350   :       1charmed1       :       1charmed1@sympatico.ca&lt;BR /&gt;15765   :       chester :       1doglover@sbcglobal.net&lt;BR /&gt;17654   :       ksehler :       1forme@earthlink.net&lt;BR /&gt;24700   :       cripps72        :       1fullyinvolved@charter.net&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@fishgeeks tmp]# head test&lt;BR /&gt;ccotu&lt;BR /&gt;AngelaDickson&lt;BR /&gt;bato&lt;BR /&gt;pamrobi&lt;BR /&gt;capnben&lt;BR /&gt;basheeba&lt;BR /&gt;Terrymobil&lt;BR /&gt;gem&lt;BR /&gt;recycling=goddess&lt;BR /&gt;tinfoilowner&lt;BR /&gt;&lt;/FH&gt;&lt;/FH&gt;</description>
      <pubDate>Tue, 21 Feb 2006 21:26:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736495#M255418</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2006-02-21T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736496#M255419</link>
      <description>Lets try this-&lt;BR /&gt; &lt;BR /&gt;perl -ane 'BEGIN{open(INP,"&amp;lt;100linefile"); @a=&lt;INP&gt;; chomp @a; $flag{$_}=1 foreach @a};print $_ if $flag{$F[1]}' yourfile&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills&lt;BR /&gt;&lt;/INP&gt;</description>
      <pubDate>Tue, 21 Feb 2006 23:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736496#M255419</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-02-21T23:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736497#M255420</link>
      <description>Simply as,&lt;BR /&gt;&lt;BR /&gt;grep -Evf 100linefile 25kfile &amp;gt; new25kfile&lt;BR /&gt;&lt;BR /&gt;mv new25kfile &amp;gt; 25kfile.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 21 Feb 2006 23:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736497#M255420</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-21T23:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736498#M255421</link>
      <description>Your attempt :&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;for USER in `cat /tmp/test`&lt;BR /&gt;do&lt;BR /&gt;echo $USER&lt;BR /&gt;grep -E -v -e' $USER ' &amp;lt; /tmp/emails.lst &amp;gt; /tmp/emails.out&lt;BR /&gt;&lt;BR /&gt;can't possibly work. Why? Because variables within sigle quotes are not expanded so that ' ${USER} ' is just exactly that. The solution is DOUBLE quotes.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 23:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736498#M255421</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-21T23:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736499#M255422</link>
      <description>Hi,&lt;BR /&gt;this is run fine on my server with korn shell:&lt;BR /&gt;&lt;BR /&gt;1. &lt;BR /&gt;sed 's/^/  /;s/$/  /' 100line&amp;gt;100line.new&lt;BR /&gt;This will create a file 100line.new with the user name eclosed in tabs. Plead note that you have to substitute the space in the above comamnd type TAB on you keyboard&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;grep -vf 100line.new 25Kfile&amp;gt;25Kfile.new&lt;BR /&gt;this will obtain what you want&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 23 Feb 2006 05:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736499#M255422</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-02-23T05:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep for tab spaces?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736500#M255423</link>
      <description>Hi Sean,&lt;BR /&gt;&lt;BR /&gt;if you like an awk-solution:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;awk -F' ' -v pat=100lines 'BEGIN {while ((getline &amp;lt; pat) == 1) m[$0]=$0; close (pat)}&lt;BR /&gt;NF&amp;gt;3 {out=1; for (p in m) {if (p==$2) {out=0;break}}; if(out) print}' logfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 24 Feb 2006 06:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-grep-for-tab-spaces/m-p/3736500#M255423</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-02-24T06:14:38Z</dc:date>
    </item>
  </channel>
</rss>

