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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange behaviour of print

Status
Not open for further replies.

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?
 
Sorry, I was treating variables like bash! Thinks like that happen from time to time :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top