Why use awk at all?
orypcat passwd | perl -wne '/:/ and print "$`\@domain.local\n";'
orypcat passwd | cut -d: -f1 | sed 's/$/@mydomain.local/'
ypcat passwd | sed 's/:.*/@domain.local/'
In reply to Re^2: add text to each line of a file
by ambrus
in thread add text to each line of a file
by stevenrh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |