Log time stamps

Jay R. Ashworth jra at baylink.com
Mon Jul 14 17:59:36 CEST 2008


On Sun, Jul 13, 2008 at 07:58:39PM -0400, Janet Post wrote:
>    If you would like to see the log files with a human-readable timestamp:
>     perl -pe 's/(\d+)/localtime($1)/e' logfile
>    Janet

Nice trick.  I was surmising there might be some way to do that, but a
perl one-liner didn't occur to me.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274

	     Those who cast the vote decide nothing.
	     Those who count the vote decide everything.
	       -- (Josef Stalin)

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list