In article <k7115q$tbl$
1...@speranza.aioe.org>,
While Janis is certainly correct in advising you not to put AWK programs on
the command line in WinDOS, you might be interested in an actual answer to
your "Why?" question.
The answer is that in the WinDOS shell, single quotes don't mean anythng at
all. They are just regular characters. So, when you write:
'length > 2'
WinDOS sees the redirection and produces an output file named 2'
But double quotes do mean something in the WinDOS shell and will, more or
less, do what you expect.
And, of course, when you use mingw, you are running it under a regular Unix
shell, where quoting works as expected, so no worries there. The point of
all this is that this has nothing to do with operating system, and
everything to do with shell.
--
The motto of the GOP "base": You can't be a billionaire, but at least you
can vote like one.