go ahead... be a heretic | |
PerlMonks |
Re: Parsing bizarro AIX errpt timestamps into English (or SQL DATETIME) format.by FreeBeerReekingMonk (Deacon) |
on Feb 10, 2019 at 14:01 UTC ( [id://1229720]=note: print w/replies, xml ) | Need Help?? |
This is a oneliner that removes the AIX TIMESTAMP, and prepends the date:
You can also replace the TIMESTAMP with the TIMEDATE:
for the following errpt output:
</code> Note that AIX errpt output does not have the seconds, so you can add those as hardcoded :00 Should you not have a header in the output you want parsed, then remove the $.==1? "TIMEDATE".(" "x9) : Sorry for necroposting.
In Section
Cool Uses for Perl
|
|