Problem with "set" and "awk"

Hi,

i'm programming on /bin/csh and i need to get the number extracted by this:

set ppl_kn = $(awk '{ field = $6 } ; END{ print field }' < ppl_LM_kn.ppl )

and the output is: "Illegal variable name."

Please anyone can help me what's wrong?

Thanks in advance

set ppl_kn = `awk '{ field = $6 } ; END{ print field }' < ppl_LM_kn.ppl`

Cheers
ZB

Thanks, it worked! :slight_smile: