Probably more geeky than most...

| | Comments (0)

This might be one of the geekiest things I've posted here, but it is about the most useful line of perl code I've come across recently and I don't want to lose it.

perl -pe 's/(\d+)/localtime($1)/e'

It converts epoch time to local time when looking at a log file.

Leave a comment

About this Entry

This page contains a single entry by Jonah Horowitz published on July 25, 2008 10:39 AM.

XKCD Meets Campaign Fundraising was the previous entry in this blog.

Lawrence Lessig at Netroots Nation is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.