bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with File input in gawk on Win32


From: Reza Ghorieshi
Subject: Problem with File input in gawk on Win32
Date: Tue, 25 Sep 2001 01:43:54 -0400

Hello,

I am having a problem the automated file input feature in gawk under win32 (DOS - windows 2000).  I am using the following command:

    c:\gawk -f  program-file  input-file1

Unfortunately, the input-file is never read by the program. Thus, given a none empty input file, and a program file containing:  BEGIN {print $0}
it prints nothing.

However,   c:\gawk "{print $0}" input-file1  works fine.

I am forced to use the:   while ((getline < "input-file1") > 0) 
method, which I very much would like to avoid.

Any advise/assistance you can provide is much appreciated.

Thank you,
Reza


reply via email to

[Prev in Thread] Current Thread [Next in Thread]