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/'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: add text to each line of a file
by smalhotra (Scribe) on Mar 14, 2005 at 22:37 UTC | |
|
Re^3: add text to each line of a file
by mw (Sexton) on Mar 30, 2005 at 11:50 UTC |