[SunHELP] shell var & awk


Wed Oct 23 16:55:58 CDT 2002


awk '{ print '${YADDA}' }'.

The single ticks turn off shell interpolation. You can turn it back on by just
adding single ticks around any pieces of the command that you want the shell
to interpolate.

--Buddy

-----Original Message-----
From: Markham, Richard [mailto:RMarkham at hafeleamericas.com]
Sent: Wednesday, October 23, 2002 2:13 PM
To: Sunhelp (E-mail)
Subject: [SunHELP] shell var & awk


Can I reference a shell variable within an awk statement?

ie.   awk '{ print ${YADDA} }'
?
TIA
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list