Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Epoch time conversion script

by NetWallah (Canon)
on Mar 28, 2012 at 17:34 UTC ( [id://962232]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Epoch time conversion script
in thread Epoch time conversion script

One liner (Using Windows style quotes. Change to Single quote for linux):
perl -pe "m/^#\+(\d+)/ and $_=scalar localtime $1" InputFileName > Ou +tputFileName

             All great truths begin as blasphemies.
                   ― George Bernard Shaw, writer, Nobel laureate (1856-1950)

Replies are listed 'Best First'.
Re^6: Epoch time conversion script
by hedkandi (Initiate) on Apr 05, 2012 at 07:05 UTC

    Hi netwallah You're a genius! This totally solved my issue. Im going to add this to cron rightaway! Thanks!

Re^6: Epoch time conversion script
by hedkandi (Initiate) on Apr 06, 2012 at 03:33 UTC

    Ok I should probably add also that it works for C shell users only! But thank you nevertheless!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found