Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!rutgers!husc6!wjh12!pixel!pixutl!chris From: chris@pixutl.UUCP (chris) Newsgroups: net.unix-wizards Subject: Re: comm '! sort file1' '! sort file2' Message-ID: <35@pixutl.UUCP> Date: Thu, 2-Oct-86 10:24:42 EDT Article-I.D.: pixutl.35 Posted: Thu Oct 2 10:24:42 1986 Date-Received: Sat, 4-Oct-86 11:21:03 EDT References: <6846@elsie.UUCP> <830003@hpcnoe.UUCP> Organization: xePIX Inc., Nashua, N.H. Lines: 24 Summary: using fifo's to compare the output of 2 pipes In article <830003@hpcnoe.UUCP>, jason@hpcnoe.UUCP (Jason Zions) writes: > > / ado@elsie.UUCP (Arthur David Olson) / 8:20 am Sep 22, 1986 / > > I regularly want to run "comm" on a pair of unsorted files. > > [ ... ] > > All fine and dandy. But then I got to thinking. . .that what I'd *really* > > like to be able to do is use a command like > > > > comm '! sort file1' '! sort file2' > > It can be done easily on SYSV, using fifo's. I keep one around in my home directory for this kind of things. This is what you do, after creating the fifo (mknod -p ~/fifo). sort file1 > ~/fifo & sort file2 | comm - ~/fifo Chris -- Chris Bertin : (603) 881-8791 x218 xePIX Inc. : 51 Lake St : {allegra|ihnp4|cbosgd|ima|genrad|amd|harvard}\ Nashua, NH 03060 : !wjh12!pixel!pixutl!chris