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]

Reply via email to