King0770-Notes-Read-the-install-history-file-in-a-readable-format

Revision as of 22:00, 5 December 2018 by King0770 (talk | contribs) (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/...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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