Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pcwiz

macrumors member
Original poster
May 28, 2008
55
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.