Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: split function

by rowdog (Curate)
on Jan 27, 2011 at 03:23 UTC ( #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.


Comment on Re: split function
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-12-28 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls