awk read redirect as an argument

September 18, 2010 at 09:48:01
Specs: Windows 7
cmd:/ awk -F\" "{print $2}" filein > fileout
awk reading > as an argument, why is that? how do I correct it to read that as an direct command

See More: awk read redirect as an argument

Report •

#1
September 19, 2010 at 08:01:34
In classic awk, the body of the script uses single quotes - not double. Also, the field seperator option surrounds the new option with either single or double quotes.

This works on my Solaris 9 Unix box:

awk -F'"' '{print $2}' filein


Report •

#2
September 19, 2010 at 19:10:56
@nails, if he is working in windows, cmd.exe doesn't like single quotes

GNU win32 packages | Gawk


Report •
Related Solutions


Ask Question