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
In reply to add text to each line of a file by stevenrh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |