Path: utzoo!attcan!uunet!lll-winken!xanth!ames!pasteur!agate!bionet!ig!arizona!rupley From: rupley@arizona.edu (John Rupley) Newsgroups: comp.unix.questions Subject: Re: Supressing new-lines in awk output Summary: define ORS=space Keywords: awk Message-ID: <9061@megaron.arizona.edu> Date: 6 Feb 89 22:47:36 GMT References: <21638@conexch.UUCP> Organization: U of Arizona CS Dept, Tucson Lines: 9 In article <21638@conexch.UUCP>, root@conexch.UUCP (Larry Dighera) writes: > Is there a way to supress the newline at the end of awk's print output? > Given: > awk '{print $1}' filename If you have the new awk == nawk: nawk 'BEGIN{ORS=" "}; {print $1}' filename John Rupley rupley!local@megaron.arizona.edu