Secret Software
Ran into a new concept while looking around Simon Cozens’ site to see if I could find more recent Maypole docs. Secret software, the crufty hacks you write for yourself, and never let see the light of day. Apparently Danny wondered, “Why does no one release this stuff?” (JWZ does) I tend to post a link to my quick hacks as I do them, but now I’ve got a label for it all, I’m inspired to pull them together onto a single page.
In the meantime, one of my favorite scripts, which got a bit more polish this weekend, is my parseapache.pl script. You see it is very difficult to work on Apache logs with conventional tools like sort
, uniq
, and cut
because the data the fields are never in the order you want to sort on, at the very least the date is different for ever row (nullifying uniq), and there are a bunch of complex delimiters (making cut and awk a challenge). parseapache.pl
takes a format string, tears apart each row, and spits it back out again in this new format (unless you pass it the -u param, in which case it acts like you appended uniq -c
)
Probably there exists a number of scripts that already do this, but I didn’t find one that did what I wanted.
(I was also able to confirm that more people have linked to cvs2rss (high 200s) then have downloaded it (212), which I find very odd)