dcronin135 has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to translate the epoch time from a command output in AIX to human readable form. However, it does not seem to be picking up the replacement expression with the correct result rather it's reporting now. Any ideas ?
lsuser -f username | perl -pe "print s/([0-9]{8,})/scalar localtime $1/e"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: lsuser epoch translate
by sn1987a (Curate) on Aug 15, 2014 at 17:54 UTC | |
by dcronin135 (Acolyte) on Oct 06, 2014 at 01:46 UTC | |
|
Re: lsuser epoch translate
by atcroft (Abbot) on Aug 15, 2014 at 17:27 UTC |