Nov 30, 2007 #1 bcklein Instructor Nov 30, 2007 2 DE Consider the following script: echo "xyz" | awk '{ print $0, $a, $b;}' What do you expect as a result? I think it should be xyz, shouldn't it? But what I get is xyz xyz xyz Any idea?
Consider the following script: echo "xyz" | awk '{ print $0, $a, $b;}' What do you expect as a result? I think it should be xyz, shouldn't it? But what I get is xyz xyz xyz Any idea?
Nov 30, 2007 Thread starter #2 bcklein Instructor Nov 30, 2007 2 DE Sorry, I was treating variables like bash! Thinks like that happen from time to time :-( Upvote 0 Downvote