comm '! sort file1' '! sort file2'
chris
chris at pixutl.UUCP
Fri Oct 3 00:24:42 AEST 1986
In article <830003 at hpcnoe.UUCP>, jason at hpcnoe.UUCP (Jason Zions) writes:
> > / ado at 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
More information about the Comp.unix.wizards
mailing list