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

Re^3: parse /etc/passwd and output it as csv in hundred servers

by hippo (Bishop)
on Apr 13, 2018 at 17:22 UTC ( [id://1212822]=note: print w/replies, xml ) Need Help??


in reply to Re^2: parse /etc/passwd and output it as csv in hundred servers
in thread parse /etc/passwd and output it as csv in hundred servers

Those are substitutions with regular expressions. The first one removes everything from the first colon to the newline character while the second turns the newlines into commas.

See Pattern Matching, Regular Expressions, and Parsing in our tutorials section, perlretut and perlre in perldoc for some references.

  • Comment on Re^3: parse /etc/passwd and output it as csv in hundred servers

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1212822]
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: (3)
As of 2024-04-25 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found