Path: utzoo!attcan!uunet!zephyr!tektronix!reed!ogccse!husc6!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!decwrl!decvax!zinn!ditka!cocktrice!mdm From: mdm@cocktrice.UUCP (Mike Mitchell) Newsgroups: comp.unix.microport Subject: Broken Awk??!? (for awk wizards) Keywords: System V/AT problem Message-ID: <427@cocktrice.UUCP> Date: 23 Jun 89 02:40:58 GMT Reply-To: mdm@cocktrice.UUCP (Mike Mitchell) Organization: Mike's Playground, Santa Fe, New Mexico Lines: 32 Is awk known to be broken on V/AT? I have the following file which exhibits bizzare behavior. There is a file with three lines and the awk command which follows. I do not understand what is happening. 'file' contains 1 2 3 I use the command awk '$3 !~ /^(<.*>)?$/' file I get the output 1 If things were working consistantly, I would expect the output 1 3 If things were working as I read the manual, I would expect the output (NOTHING!) Is my expression hurt, or is awk hurt? -- Mike Mitchell BELL H (505) 471-7639 W (505) 473-4482 2020 Calle Lorca #43 ARPA mdm@cocktrice.UUCP Santa Fe, NM 87505 UUCP ...!uunet!dmk3b1!cocktrice!mdm