in reply to Re: add text to each line of a file
in thread add text to each line of a file
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 Section
Cool Uses for Perl