Re: Wierd awk error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux