Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: add text to each line of a file

by ambrus (Abbot)
on Mar 10, 2005 at 22:04 UTC ( #438438=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ypcat passwd | perl -wne '/:/ and print "$`\@domain.local\n";'
    
  2. or download this
    ypcat passwd | cut -d: -f1 | sed 's/$/@mydomain.local/'
    
  3. or download this
    ypcat passwd | sed 's/:.*/@domain.local/'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2023-12-04 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?