in reply to How to grep exact string
Yes instead of using grep, why aren't you using hashes to determine whether there is anything new in the file? You can build up a hash of all the terms (machines) in file1 and then check the hash to see whether an entry exists for each line of file2.
This would be much quicker than using grep for what you seem to be doing.
A Monk aims to give answers to those who have none, and to learn from those who know more.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Use hashes instead of grep
by ColonelPanic (Friar) on Nov 15, 2012 at 10:22 UTC | |
by space_monk (Chaplain) on Nov 15, 2012 at 10:55 UTC | |
by ColonelPanic (Friar) on Nov 15, 2012 at 11:15 UTC | |
by Anonymous Monk on Nov 15, 2012 at 14:18 UTC | |
by space_monk (Chaplain) on Nov 15, 2012 at 14:01 UTC |
In Section
Seekers of Perl Wisdom