Linux timestamp
From FoppaWiki
Sometimes logfiles, and other stuff, is stamped with linux time stamp Linux time - and its not very human readable
| awk '{print strftime("%d-%m-%y %H:%M:%S",substr($1,1,10)) ": "$0}'
ie:
# cat /var/log/blahbluh | awk '{print strftime("%d-%m-%y %H:%M:%S",substr($1,1,10)) ": "$0}'
The following is the same thing achived in perl:
| perl -pe 's/(\d+)/localtime($1)/e' log
Date can obviously also do the trick
date -d @<pastelinuxtimestamp>
