I get the same type of error on Windows, but currently I assumed (and perhaps erroneously), that since he was using
cat that he was not working at a windows/dos command (cmd) prompt, but rather a *nix one (or cygwin on windows, perhaps). So switching the quotes would/should have helped.
-enlil