tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: John Wiebe <jwiebe () ptc ! com>
To: tru64-unix-managers
Subject: Problem with awk?
Date: Wed, 03 Sep 1997 18:28:56 +0000	[thread overview]
Message-ID: <96078617110213.tru64-unix-managers.marc@archive.invalid> (raw)

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.

                 reply	other threads:[~1997-09-03 18:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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