Here's the a python script for finding ident output

May 14, 2008 08:14AM
import re

filevar = raw_input("Enter Filename to scan: ")
print "\nScanning ", filevar

fileobj = open(filevar)
idexp = re.compile('^----------------------------------------(?!-).*?^\n', re.MULTILINE | re.DOTALL)

resultlist = idexp.findall(fileobj.read())

for item in resultlist:
print item


It will ask for a log file and output the id's contained. I might mess with it some more if anyone is interested in in scanning a directory and output the result to a file. Lore and the other might be trickier regexp's, but I'll see if I can work up a simple regexp for those as well.
Subject Author Posted

CFI3

TJHuron May 13, 2008 08:33PM

Re: CFI3

Orcinus May 14, 2008 02:21PM

Keep posting logs into the miscitems on the wiki...

Yhorian(VIP) May 14, 2008 06:03AM

If someone could send me enough idents...txt

Isildur(VIP) May 14, 2008 06:14AM

Don't forget about Alduk! NT

Falstaff May 14, 2008 08:28AM

And his Hamsah equivalent. nt

Isildur(VIP) May 14, 2008 01:25PM

Ooh, never heard of him. n/t

Graham May 15, 2008 12:40AM

Re: If someone could send me enough idents...txt

briartangle May 14, 2008 06:28AM

Can it do something like this...

Yhorian(VIP) May 14, 2008 06:38AM

Re: Can it do something like this...

briartangle May 14, 2008 06:45AM

Might be worth having an 'item drive'...

Yhorian(VIP) May 14, 2008 06:24AM

Re: Might be worth having an 'item drive'...

Isildur(VIP) May 14, 2008 07:38AM

Here's the a python script for finding ident output

laearrist May 14, 2008 08:14AM

SHAME ON YOU!

odrirg May 14, 2008 03:54AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 89
Record Number of Users: 1 April 26, 2024
Record Number of Guests: 133 April 26, 2024