Problem with awk?

From: John Wiebe <jwiebe_at_ptc.com>
Date: Wed, 03 Sep 1997 14:28:56 -0400

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_at_ptc.com
ptc tools group.
Received on Wed Sep 03 1997 - 20:58:06 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT