in reply to Re^2: removing same entries between 2 files
in thread removing same entries between 2 files
My apologies for the confusion again, and Good Luck!!#!/usr/bin/perl use strict; use warnings; open FILE, 'file.1.dat'; my $hist = {map{ chomp; $_ => 1 } @{[<FILE>]}}; close FILE; open FILE, 'file.2.dat'; while ( my $line = <FILE> ) { chomp( $line ); my ( $file, $account, @other ) = split( /\t/, $line ); next if ( exists( $hist->{$account} ) ); print "$account:\t$file\n"; } close FILE; exit; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: removing same entries between 2 files
by sbp (Initiate) on Nov 30, 2005 at 03:12 UTC | |
by BrowserUk (Patriarch) on Nov 30, 2005 at 03:45 UTC |