Connecting Tech Pros Worldwide Help | Site Map

Simple word find

  #1  
Old April 3rd, 2007, 11:05 PM
Rob
Guest
 
Posts: n/a
I have have log files (in directories named by date) that I need to look
for passwords in. The passwords im looking for are listed in a file
like this:

password1 acutal_password
password2 actual_password
and so on, up to about 50 of them...


I have written a simple shell script to do something like this, but
thought it must be Much faster and elegant in perl.

What I did, was a recursive find of ctime of like 7 and put this to a
file. Then I would grep -f the filelist with the password list to find
if any of these files that have the passwords in them.
Then i would take that filelist and loop and search for the password(s).

The output if passwords were found would be like :

password1 directory/filename

Is there anything that someone can show me written in perl that would
be much more simpler than this? I looked though log file analyzers, etc
but most only look at one log file or are quite complicated.

Would apreciate it. Thanks,

-Rob
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on .NET Word Object Library Range Find.Execute infinite Loop winston.heng@gmail.com answers 1 February 13th, 2007 07:05 PM
a little help in word automation David Krmpotic answers 0 November 15th, 2005 03:56 PM
simple word wrap problem not wrapping Douglas G answers 10 November 14th, 2005 01:00 PM
Accessing Microsoft Word from Python Mickel Grönroos answers 4 July 18th, 2005 08:50 AM