Difference between revisions of "King0770-Notes-Read-the-install-history-file-in-a-readable-format"

(Created page with "===Read the install history file in a readable format=== <code><pre>perl -e 'while (<>) { ($date, $op) = split(/:/, $_); print scalar localtime($date) . " " . $op; }' < /opt/...")
 
(No difference)

Latest revision as of 22:00, 5 December 2018

Read the install history file in a readable format

perl -e 'while (<>) { ($date, $op) = split(/:/, $_); print scalar localtime($date) . "  " . $op; }' < /opt/zimbra/.install_history

Or

perl -an -F: -e 'print scalar localtime(shift @F), " @F";' /opt/zimbra/.install_history

More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes

Jump to: navigation, search