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)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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