A Perl script called logHunter.pl

Ok here is a perl script that is pretty much useless in Linux, becuase linux has the grep command, but I’m a geek so I wrote it anyways. Hey, it could be usefull in windows…lol. So if you haven’t figured it out yet, this script will look thru a file for keywords and only print out the lines that contain the keyword. Of course you could also just output the results to a new file.

That’s all there is to that… oh and it doesn’t matter about case because of the “i” in the regular expression, there’s one difference in grep… you don’t have to use the “-i” flag. Also, it should be portable to windows as is. 😛

Linux, Perl Scripts, Tutorials/Whitepapers, Windows

Leave a Reply

Comment
Name*
Mail*
Website*