>
>
> $ gawk -f mwe.txt
> gawk: mwe.txt:1: Alice|[email protected]
> gawk: mwe.txt:1:       ^ syntax error
> gawk: mwe.txt:2: Bob|[email protected]
> gawk: mwe.txt:2:     ^ syntax error
> gawk: mwe.txt:3: Carol|[email protected]
> gawk: mwe.txt:3:       ^ syntax error
>
> What have I done incorrectly?
>
>
You're running your data file as the gawk script. You want `gawk -f foo.awk
< mwe.txt`.

- Marcel

Reply via email to