Pádraig Brady wrote:
> Lasse Kliemann wrote:
>> How complicated it would be to add a `-z' or `-0' switch to `comm' in order 
>> to allow zero-terminated "lines"? The `sort' command, for example, allows 
>> this, and this is very useful when dealing with filenames. 
>>
>> Or is such functionality already provided in a different way?
> 
> Probably in future, all coreutils filters
> should take a standard option to specify NUL
> as the item delimiter.
> 
> In the meantime one can work around that,
> albeit with extra data copying, using something like:
> 
> tr '\n' '\1' |
> comm |
> tr '\1' '\n'

sigh, I meant the following of course:

tr '\n\0' '\1\n' |
comm |
tr '\1\n' '\n\0'

Pádraig.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to