Menu

Gawk in batch file fails

Help
waldo
2005-06-27
2012-07-26
  • waldo

    waldo - 2005-06-27

    Don't know if I'm being stupid but.....

    gawk "{ print $5 $7 }"
    C:\poclog.parsed.txt
    (all on one line at command line)
    does what I want

    but run from a batch file it appears to hang. Output shows:
    gawk "{ print $5 $7 }" and err nothing else.

    XP sp2.

    Any ideas?

     
    • waldo

      waldo - 2005-06-27

      And bizarrely if you go for a

      type pcolog.parsed.txt | gawk "{ print $5 $7 }"

      in a batch file, it loves it. I assume it's a direction or path type issuette.

       
MongoDB Logo MongoDB