Awk
    Guenter Steinbach 
    steinbac at hpl-opus.hpl.hp.com
       
    Tue Mar 12 15:30:26 AEST 1991
    
    
  
In comp.unix.misc, ezra at daimi.aau.dk (Thomas Ravnholt) writes:
>   I have a little question about awk (nawk).
>   If I want to run a unix-command in an awk-script,
> how do I get the output into a variable.
In nawk, I do
"unixcommand" | getline x
or even
"unixcommand" arguments_from_awk | getline x
to stuff the output of unixcommand into variable x.
Good luck.
	 Guenter Steinbach		gunter_steinbach at hplabs.hp.com
    
    
More information about the Comp.unix.misc
mailing list