From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110213.tru64-unix-managers.marc@archive.invalid> From: John Wiebe Date: Wed, 03 Sep 1997 18:28:56 +0000 To: tru64-unix-managers Subject: Problem with awk? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110213 Managers, I've been having a problem with a Csh script that works on SunOS5.5, HPUX10.20,IRIX6.2, DU3.2d, but not DU4.0b? The problems seems to be related to awk, here is the simplified version ... #!/bin/csh -f set trl = "somestuff" set fail_mtypes = `awk '/'"$trl"'/{print FILENAME}' *.log ` echo $fail_mtypes I created three files, "one.log", "two.log", "three.log" . Files one.log and two.log have the line"somestuff" inside them and three.log just has garbage. And the script should return the name of the files with the the somestuff string. It works on all the other Platforms, but not DU4.0b . I get an error like this ... syntax error The source line is 1. The error context is >>> one.l <<< awk: Quitting The source line is 1. Any Ideas? This has been baffling me all day. I also tried using nawk and gawk as well with a similiar error, but only on DU4.0b . I could get around the problem in another fashion without using csh or awk, but it's a matter of principle to figure this out. Thanks John Wiebe jwiebe@ptc.com ptc tools group.