Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Script to convert HBA WWNs to lowercase and add ":"

by Anonymous Monk
on Jun 09, 2017 at 15:07 UTC ( [id://1192429]=note: print w/replies, xml ) Need Help??


in reply to Re: Script to convert HBA WWNs to lowercase and add ":"
in thread Script to convert HBA WWNs to lowercase and add ":"[Updated]

echo 20000090fa173c04 | perl -lane 's/(..)/$1:/g && chop; + print'
or
echo 20000090fa173c04 | perl -lane 's/(..)/$1:/g && chop; + print lc'
or
echo 20000090fa173c04 | perl -lane 's/(..)/$1:/g && chop; + print uc'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found