Article View: comp.unix.shell
Article #1312Re: awk
From: Booker bense
Date: Tue, 02 Oct 1990 15:58
Date: Tue, 02 Oct 1990 15:58
28 lines
1280 bytes
1280 bytes
In article <8678@mirsa.inria.fr> mmartin@orphee.inria.fr (Michel MARTIN) writes:
>When I type
>
> awk ' { while (getline <"lettre" > 0 ) } '
>
>I've an error like
>
> awk: syntax error near line 1
> awk: illegal statement near line 1
>
>Does someone knows a solution please
>tanks a lot
- You probably have an older version of awk than the one documented in the
book " The Awk Programming Language" by A. W. & K. . The one in the book
doesn't come with most unix systems. You have to buy it from ATT. They
also have a nifty tool I wish we could get which takes awk programs and
writes c code.
I haven't found a way to get older awk to read more than one file. Mostly
I get around this by using multiple awk programs that pipe output into
each other.
Booker C. Bense
/* benseb@grumpy.sdsc.edu */
grep ?!$ Isn't that something that sticks to your shoes ? %-) &-) 8-)
Technical Details
Message-ID:
<3802@network.ucsd.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!network.ucsd.edu!bookerReferences:
<8678@mirsa.inria.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!network.ucsd.edu!booker From: booker@network.ucsd.edu (Booker bense) Newsgroups: comp.unix.shell Subject: Re: awk Keywords: getline Message-ID: <3802@network.ucsd.edu> Date: 2 Oct 90 15:58:03 GMT References: <8678@mirsa.inria.fr> Organization: San Diego Supercomputer Center @ UCSD Lines: 28