command line - How do I convert an epoch timestamp to a human readable format on the cli? - Unix & L
$ echo 1190000000 | perl -pe 's/(\d+)/localtime($1)/e' Sun Sep 16 20:33:20 2007 This can come in handy for those applications which use epoch time in the logfiles: $ tail -f /var/log/nagios/nagios.log | perl -pe 's/(\d+)/localtime($1)/e' [Thu May ...