[GRASS5] wrapper for awk?
Jan-Oliver Wagner
jan at intevation.de
Mon Mar 5 13:51:53 EST 2001
On Mon, Mar 05, 2001 at 07:24:14AM -0500, Eric Mitchell wrote:
> Option 1: check for awk in configure.in, and
> update the script file accordingly.
>
> Option 2:
> ------------------------------------------------
> #!/bin/sh
> exec awk -f program.awk file ...
> ------------------------------------------------
>
> where program.awk is your file without the line,
Option 3 (still only one file):
something like:
#!/bin/sh
awk --source='
/some/ { x = 1}
/awk/ { x = 1}
/source/ { x = 1}
' $1
(don't know whether only gawk has option --source
Jan
--
Jan-Oliver Wagner http://intevation.de/~jan/
Intevation GmbH http://intevation.de/
FreeGIS http://freegis.org/
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list