Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: split function

by rowdog (Curate)
on Jan 27, 2011 at 03:23 UTC ( [id://884471]=note: print w/replies, xml ) Need Help??


in reply to split function

$ date|awk '{print $4}'|awk -F: '{print $1$2}'|cut -c3-4 19
$ perl -e 'print( (localtime)[1], "\n" )' 19

I don't really understand awk so I might be mistaken. If you're looking for something other than minutes, consult localtime.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found