Path: utzoo!utgpu!water!watmath!clyde!rutgers!umd5!purdue!gatech!hao!noao!arizona!rupley From: rupley@arizona.edu (John Rupley) Newsgroups: comp.unix.questions Subject: Re: Using pipes within awk programs Summary: Ultrix may have a problem Keywords: awk, pipe Message-ID: <3521@megaron.arizona.edu> Date: 21 Jan 88 20:07:34 GMT References: <515@root44.co.uk> <2138@geac.UUCP> Organization: U of Arizona CS Dept, Tucson Lines: 16 In article <2138@geac.UUCP>, ivor@geac.UUCP (Ivor Williams) writes: > In article <515@root44.co.uk> you write: > > who | awk '{ print $1 | "sort" }' > >gives the same output as > > who | awk '{ print $1 }' | sort > > FYI, the two *don't* give the same results under Ultrix T2.0-1I. Then Ultrix must be seriously broken, to not allow standard usage of sort and awk. Diff shows identical output for the above two command lines, under BSD4.3 (old awk) and SysV rel2 (new awk). John Rupley internet: rupley@megaron.arizona.edu uucp: ..{ihnp4 | hao!noao}!arizona!rupley Dept. Biochemistry, Univ. Arizona, Tucson AZ 85721