Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-10-04 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?