EMAIL PROTECTED]'
Subject: RE: matching two files
On May 10, Jeff 'japhy' Pinyan said:
>On May 10, Bob Showalter said:
>
>>perl -e 'do {$x{<>}=1} until eof; exists $x{$_} && print && delete $x{$_}
>>while(<>)' mac1.txt mac2.txt
On May 10, Jeff 'japhy' Pinyan said:
>On May 10, Bob Showalter said:
>
>>perl -e 'do {$x{<>}=1} until eof; exists $x{$_} && print && delete $x{$_}
>>while(<>)' mac1.txt mac2.txt
>
>perl -e 'do{$x{<>}=1}until eof;delete$x{$_}&&print while<>' X Y
perl -e '$_.=<>until eof;s/^\Q$r\E$//m&&print whil
On May 10, Bob Showalter said:
>perl -e 'do {$x{<>}=1} until eof; exists $x{$_} && print && delete $x{$_}
>while(<>)' mac1.txt mac2.txt
perl -e 'do{$x{<>}=1}until eof;delete$x{$_}&&print while<>' X Y
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia bro
> -Original Message-
> From: Tucker, Ernie [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 11:51 AM
> To: '[EMAIL PROTECTED]'
> Subject: matching two files
>
>
>
> Here is my first problem to the list. I have two different files with
> information that I need to find out what bo
On May 10, Tucker, Ernie said:
>Here is my first problem to the list. I have two different files with
>information that I need to find out what both have.
This is answered in the Perl FAQ:
japhy% perldoc -q intersection
Found in /usr/local/lib/perl5/5.00502/pod/perlfaq4.pod
"How do I com