[PLUG] gawk: ignoring '@' in email address
Robert Citek
robert.citek at gmail.com
Mon Feb 8 17:49:51 UTC 2010
On Mon, Feb 8, 2010 at 12:32 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> awk -f .co-commissioners.addresses '$2 "\t" $2 ", " $1 "\t" $3 "marketing"' > temp.tmp
Why the -f?
> awk: .co-commissioners.addresses:1: ^ invalid char '@' in expression
>
> How do I specify to awk that the '@' is part of a field?
This works for me:
$ echo "First Second e-mail at address" |
awk '{print $2 "\t" $2 ", " $1 "\t" $3 "\tmarketing"}' |
cat -A
Second^ISecond, First^Ie-mail at address^Imarketing$
Regards,
- Robert
More information about the PLUG
mailing list