Grep and Awk in Windows Invalid Char in Expression Error

Posted by Nathan on Stack Overflow See other posts from Stack Overflow or by Nathan
Published on 2011-01-31T14:51:56Z Indexed on 2011/01/31 15:26 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

I am new to grep and awk - using Windows 7 (I downloaded grep and awk for windows from GnuWin).

I am have having trouble running this script:

grep -Fwf dictionary.txt frequency.txt | awk '{print $2 "," $1}'

I get the error:

awk: '{print
awk: ^ invalid char ''' in expression

I believe it might have something to do with having to use double quotes in Windows, but I tried all the combinations I can think of and still it doesn't work.

Can anyone help? Thanks

© Stack Overflow or respective owner

Related posts about Windows

Related posts about awk