Wierd awk error

Paul Howarth paul at city-fan.org
Fri Feb 25 08:35:43 UTC 2005


On Fri, 2005-02-25 at 17:32 +0900, Torben M. Hansen wrote:
> Hi All
> 
> I'm trying extract some data from a file using awk. However I get errors that
> I don't understand.
> 
> My awk file (crds.awk) looks like
> /= DATASET/     { ds = $3; }
> /xangst/        {if (ds == 1) {ln = 1; print $2,$3,$4 }}
> {if ((ln > 0) && (ln < 61))     {if (ln!=1) {print $1,$2,$3} ln+=1 }}
> 
> and I execute it with
> awk -f crds.awk c60*.out
> but get the following error
> awk: crds.awk:3: /x
> awk: crds.awk:3:  ^ invalid char '' in expression

Did you create crds.awk on a Windows box by any chance?

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list