Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site topaz.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!columbia!topaz!jaffe From: jaffe@topaz.ARPA (Saul) Newsgroups: net.bugs.4bsd Subject: Possible bug in awk? Message-ID: <1143@topaz.ARPA> Date: Mon, 8-Apr-85 13:54:49 EST Article-I.D.: topaz.1143 Posted: Mon Apr 8 13:54:49 1985 Date-Received: Tue, 9-Apr-85 04:23:22 EST Organization: Rutgers Univ., New Brunswick, N.J. Lines: 20 I have been trying to do some stuff with awk that I saw in an example in one of the Unix books and it doesn't work as I thought. It seems to me that the line: echo "This is a test" | awk {$1 = "Foo"; print} should print out "Foo is a test" but all I get when I try it is the original line. Is this a bug in awk? If I specify that I want $1, $2 etc printed I get the correct values. If this is a bug does anyone know of a fix??? -- Saul Jaffe Systems Programmer Rutgers University ARPA: Jaffe@Rutgers UUCP: ...{harvard,seismo,ut-sally,ihnp4!packard}!topaz!jaffe