Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!uw-beaver!uw-june!uw-entropy!dataio!pilchuck!apcisea!ssc!fyl From: fyl@ssc.UUCP (Phil Hughes) Newsgroups: comp.unix.questions Subject: Re: awk question Message-ID: <583@ssc.UUCP> Date: Fri, 3-Jul-87 17:18:44 EDT Article-I.D.: ssc.583 Posted: Fri Jul 3 17:18:44 1987 Date-Received: Sat, 4-Jul-87 19:51:21 EDT References: <718@trwcsed.trwrb.UUCP> Organization: SSC, Inc., Seattle, WA Lines: 16 Summary: disgusting way I did it but it worked In article <718@trwcsed.trwrb.UUCP>, kraml@trwrb.UUCP (Robert P. Kraml) writes: > I have a question concerning the awk utility. Does anyone know if > there is a way to pass awk variables out as shell variables on a > line-by-line basis. I am now prowd of this and hope someone comes up with a clean way but I had a similar problem (passing stuff back to a calling shell script). The child wrote a file consisting of setenv commands with the appropriate data. When control was returned to the parent, it did a source of the file. (Ok, I'm embarassed but it did what I needed.) You could use the same method writing the file with awk. -- Phil Hughes, SSC, Inc. P.O. Box 55549, Seattle, WA 98155 (206)FOR-UNIX ...!uw-beaver!tikal!ssc!fyl