Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: one liner?

by jwkrahn (Monsignor)
on Aug 03, 2012 at 15:15 UTC ( #985261=note: print w/ replies, xml ) Need Help??


in reply to one liner?

perl -lpe's/([^,]+)$/ sprintf "%05s", $1 /e' yourfile


Comment on Re: one liner?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2014-09-20 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls