Feb 26, 2018, 4:18 PM
Re: [BillKSmith] File Comparison (2 files): Matching Occurences
Thanks for getting back Chris and Bill!
I am a bit new to perl, especially perl, I have prior experience to an extent with python and bash. However, your methods seem a bit complex for my knowledge.
I have gotten started based off reviewing your submissions to my post' and have been trying a different, maybe simpler route.
So far I have read the PHISHING TERMS (shown in the screen shot) into an array. I need to now figure out a method for using that array go find matches in the Sample_Email.txt file (shown in the screen shot as well). As for the PHISHING TERMS documents, I may shorten that list to just one instance of each word, instead of the variations, because I'm not even sure I need that.
1. Read in all or one line from the email
3. Compare the words to email array
4. Increment a counter
5. Move to the next line (email)
If there is an easier way using grep or AWK that would be nice too.
Thanks for the help, much appreciated!!!
(This post was edited by ewh006 on Feb 26, 2018, 4:20 PM)