Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gawk sending every $0 to the primary output.

Status
Not open for further replies.

olddurro

Programmer
Nov 1, 2015
1
GB
I'm using gawk (under cygwin) to read and parse large .XML files. My main print statements are directed to files but gawk is sending every $0 of the input file to the primary output (the screen in this case); which makes it impossible to see the few print outputs I need to see to judge progress.
Does anyone have any idea why this might be happening (other than a stray print($0) statement.

Smaller awk test programs work correctly when reading the same .xmls.

the call is:

gawk -f myprog.awk *.xml
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top