comm '! sort file1' '! sort file2'

Chris Torek chris at umcp-cs.UUCP
Tue Oct 7 13:23:10 AEST 1986


>/ 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'
>> 

In article <35 at pixutl.UUCP> chris at pixutl.UUCP (chris) writes:
>It can be done easily on SYSV, using fifo's.

Unfortunately, one must be root to create a fifo, no?

It should (but is not presently) possible to do this in 4.3BSD
using AF_UNIX sockets.  The socket `file' that is created should
be usable by any ordinary process.  An open() could be translated
into a socket(),connect() pair, and the process would then be
talking to the creator of the socket.

Perhaps in 4.4...
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.unix.wizards mailing list