It is currently Tue, 07 Dec 2021 02:44:16 GMT



 
Author Message
 awk and sh variables in a shell script
In article: <3et2dg$...@bmerhc5e.bnr.ca>  ram...@bnr.ca (S.RamNarayan) writes:
Only if your awk==nawk, which includes this, try also:

cat $j | awk '{print "rect ("$2","$3") ("$2+$4","$3+$5") '"$name"' /ICONTACT/"$1}'>> $j.map;
                                                         ^       ^
This should  present the contents of your shell variable in the awk
program.
Good Luck!
----
Phil Cramp
ph...@hipstech.demon.co.uk
#include <std/disclaimer>



 Tue, 01 Jul 1997 15:58:01 GMT   
 
   [ 1 post ] 

Similar Threads

1. awk and sh variables in a shell script

2. help for newbie: way to get the value of an awk variable in a shell script

3. file contents into variable, or global variable from shell script

4. export variables to calling shell in a shell-script


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software