why not assign it to an environment variable and let awk pick it up from
there?
-----Original Message-----
From: dennison <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, February 10, 2001 12:07 AM
Subject: [plug] awk question
>In awk, how can I assign the output of a system() function to a variable?
For example:
>
>awk `{
> myString=""
> myString=system("echo hello world")
>}`
>
>
>In the above example, I want the output of "echo hello world" to be
assigned to myString, which is an awk variable, but awk does not allow this:
>
> myString=system("echo hello world")
>
>Is there a way to do it, and how? If not, any suggestions?
>
>
>Thanks,
>dennison
>
>
>__________________________________
>www.edsamail.com
>_
>Philippine Linux Users Group. Web site and archives at
http://plug.linux.org.ph
>To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]