Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: lsuser epoch translate

by atcroft (Abbot)
on Aug 15, 2014 at 17:27 UTC ( [id://1097596]=note: print w/replies, xml ) Need Help??


in reply to lsuser epoch translate

I didn't have an AIX box to try the command on, so I mocked up some (what I thought reasonable) output, and was able to do what you are trying with this:

echo "`date +%s` boxen foo Test message 123456789012345" | perl -pe 's/(\d{8,})/scalar localtime $1/e;'
to get
Fri Aug 15 12:23:47 2014 boxen foo Test message 123456789012345

Hope that helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1097596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found