@jjg Goodness. Your stuff looks like my stuff for ad hoc converting stuff! :-)
output = output + something
output = ...
lots of sed too ;-)
mine also has plenty of
this = re.compile('that')
as well.
@jjg stil pays to put *some* comments and structure though.
I have cobwebs in /home/gemlog/bin going back decades that I sometimes mine for lazy code.
@jjg As it happens i need to convert a random format that I've cleaned up a bit already with sed. I was trying to think of something similar... until just NOW! talking to you! :-) i knew I'd done something very nearly like it before to save time...
#!/usr/bin/python
# Mon Jun 26 17:13:49 2006
# chew up the old pcwrite files after some clean up by hand
# and spit it out as nice as we can
Someone wanted to reprint a book and only had an orphaned file format of the original. Quick money.