[GRASS5] wrapper for awk?

Eric Mitchell emitchell at altaira.com
Mon Mar 5 07:24:14 EST 2001


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,

#!/path/to/awk -f

If the processing gets really complex, perhaps perl
might be a better choice.



Markus Neteler wrote:

> Hi all,
> 
> time for another wrapper...
> 
> On Mon, Mar 05, 2001 at 05:31:43PM +0100, mlennert at club.worldonline.be wrote:
> 
>>> grass2fig needs:
>>> #!/bin/awk -f
>> 
> 
> On Debian Linux it is here: /usr/bin/awk...
> 
> How can we implement an awk wrapper?
> 
> Markus
> 
> ---------------------------------------- 
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo at geog.uni-hannover.de with
> subject 'unsubscribe grass5'


-- 
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell         mailto:emitchell at altaira.com |
| tel: (301) 809 - 3534    Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR    4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122    Bowie, MD  20716             |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
               ,___
           /"\  / o=\  /"""---===/
          /   \_/  \__/   ---===/
          |    //\   || /""TT""/ //\   || ||""\
          |   //  \  ||    ||   //  \  || ||__/
          |  //--==\ |L--/ ||  //--==\ || || "=,
           \      ---===/
            \____---===/


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