we wanted to turn our usernames into email addresses for our domain, from the NIS database.
It isn't entirely in perl, but it is pretty useful for me :)
ypcat passwd | awk -F: '{print $1}' | perl -p -e' ; chomp; print "$_\@ +domain.local > oneliner.out
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: add text to each line of a file
by thor (Priest) on Mar 10, 2005 at 19:30 UTC | |
by ambrus (Abbot) on Mar 10, 2005 at 22:07 UTC | |
by thor (Priest) on Mar 11, 2005 at 01:08 UTC | |
Re: add text to each line of a file
by b10m (Vicar) on Mar 10, 2005 at 19:36 UTC | |
by ambrus (Abbot) on Mar 10, 2005 at 22:04 UTC | |
by smalhotra (Scribe) on Mar 14, 2005 at 22:37 UTC | |
by mw (Sexton) on Mar 30, 2005 at 11:50 UTC |