Eddie Chen wrote:
I am trying to export a varable from awk and is not taken an effect when I
do "env" once I exit from the awk program.
system(export ISODATE=`date --iso-8601`) or I think I also try "export
ISODATE=`date --iso-8601` | getline isodate "
how do I set ENV varable in awk ...
A program cannot change its parent's environment.
A workaround is to write shell command(s) to a temp file then source it.
In bash,
help source
--
Cheers
John
-- spambait
[EMAIL PROTECTED] [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390