If you happen to be working on a system where you want to convert unix time to human readable format, use this:
perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
Its a perl command that when applied to a .log file allows you to convert unix time to a format that is readable to the user. You can pretty much use this with other small shell tools to do wonderful things.
No comments:
Post a Comment