CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [BillKSmith] File Comparison (2 files): Matching Occurences: Edit Log



ewh006
New User

Feb 26, 2018, 4:18 PM


Views: 8430
Re: [BillKSmith] File Comparison (2 files): Matching Occurences

Good Evening,

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.

Basically,

1. Read in all or one line from the email

2. Split

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)
Attachments: Screenshot_1.png (100 KB)


Edit Log:
Post edited by ewh006 (New User) on Feb 26, 2018, 4:20 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives