in reply to Redirecting STDIN on Windows commandline

Did you try exactly the same script and test data as that link?

One gotcha is that Windows treats a control-Z character as an end-of-file, so if your input file contains one of those you'll see nothing after it.

You might also be hitting line-ending problems - was your datafile created (from scratch) in a windows editor such as notepad, or might it have unix line endings?

  • Comment on Re: Redirecting STDIN on Windows commandline