in reply to Comparing files
One way to do it would be to read each file, pulling out the mac addresses, and then use the mac addresses as hash keys. Something like "$found{$addr}++". Once you've done that, having read each file, %found will contain a list of all mac addresses, and a count for each address. If count == 30, you know that particular address was found in all 30 files, and you can output that key to your new file.
Hope that helps...
If none of this makes sense, start with a less ambitious project, such as reading "Learning Perl" (the Llama book), published by O'Reilly and Associates.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparing files
by thor (Priest) on Jul 19, 2004 at 22:20 UTC | |
by davido (Cardinal) on Jul 19, 2004 at 22:27 UTC | |
by dannyp (Novice) on Jul 20, 2004 at 03:27 UTC | |
by davido (Cardinal) on Jul 20, 2004 at 04:34 UTC | |
by dannyp (Novice) on Jul 20, 2004 at 17:46 UTC | |
|