Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!mit-eddie!ll-xn!cit-vax!elroy!jplgodo!wlbr!scgvaxd!trwrb!kraml From: kraml@trwrb.UUCP (Robert P. Kraml) Newsgroups: comp.unix.questions Subject: awk question Message-ID: <718@trwcsed.trwrb.UUCP> Date: Mon, 29-Jun-87 21:15:13 EDT Article-I.D.: trwcsed.718 Posted: Mon Jun 29 21:15:13 1987 Date-Received: Thu, 2-Jul-87 02:36:25 EDT Reply-To: kraml@trwcsed.UUCP (Robert P. Kraml) Organization: TRW EDS, Redondo Beach, CA Lines: 19 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. What I mean is the following: 1. awk reads in a line of NF fields 2. some of those fields get passed out as shell variables 3. These variables are operated on (i.e. put into certain files). 4. Awk reads another line and so on... . . . I know how to get shell variables into awk but not visa versa. Any help would be greatly appreciated. -- Phone: (213) 536-1871 {allegra,uscvax,decvax,randvax,ihnp4,sdcrdcf} Address: One Space Park | 82/2024 ------>!trwrb!trwcsed!kraml Redondo Beach CA 90278