Re: Comparing file contents, the perl way

2008-05-22 Thread beast
On Thu, May 22, 2008 at 2:52 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > 32134 > $ grep -f A.txt -wv B.txt > 82134 > Ouch, i never think that it can be so easy!! Thanks. --budhi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.

Re: Comparing file contents, the perl way

2008-05-22 Thread John W. Krahn
beast wrote: Good morning, Hello, I have 2 files which contains some IDs. Basically I want to search ID in the file A which is missing on the file B. This program is ugly, but its work :-) use strict; my $target_file = "B.txt"; while(<>) { chomp; my $res = `grep $_ $targe

Re: Comparing file contents, the perl way

2008-05-21 Thread Li, Jialin
On Wed, May 21, 2008 at 9:40 PM, beast <[EMAIL PROTECTED]> wrote: > Good morning, > > I have 2 files which contains some IDs. Basically I want to search ID > in the file A which is missing on the file B. > > This program is ugly, but its work :-) > > use strict; > > my $target_file =