Hi,
I want to use this awk command with NSTask:
awk 'NR>1{print $1}'
However I cannot get it to work. I use /usr/bin/awk as the launch path then the entire 'NR>1{print $1}' as an argument, but I get a syntax error:
/usr/bin/awk: syntax error at source line 1
context is
>>> ' <<<
/usr/bin/awk: bailing out at source line 1
Any help would be appreciated
Thanks
I want to use this awk command with NSTask:
awk 'NR>1{print $1}'
However I cannot get it to work. I use /usr/bin/awk as the launch path then the entire 'NR>1{print $1}' as an argument, but I get a syntax error:
/usr/bin/awk: syntax error at source line 1
context is
>>> ' <<<
/usr/bin/awk: bailing out at source line 1
Any help would be appreciated
Thanks