tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Problem with awk?
@ 1997-09-03 18:28 John Wiebe
  0 siblings, 0 replies; only message in thread
From: John Wiebe @ 1997-09-03 18:28 UTC (permalink / raw)
  To: tru64-unix-managers

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-03 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-03 18:28 Problem with awk? John Wiebe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox