I can't reproduce your problem with
nawk (or with
gawk) with the example line you've given. Perhaps a section of your
infile, say 10 or 20 lines would help diagnose?
A thought: you may have unmatched quotes in your file.
A other thought: shouldn't matter ('cause
nawk doesn't care about such things) but try inserting spaces; e.g.,
Code:
nawk 'BEGIN { FS=" " } /string/ {gsub(/string/,"",$0); print $0}' infile
Still another thought: is your line too long for the terminal window (probably not, but ya never know, might be getting truncated).
Yet another thought: try it in KornShell instead of C-Shell.
Hope this helps some.