[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: comm applet is broken
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2012-04-26 15:55:52
Message-ID: CAK1hOcOV3i6ki8UPf6gF3ZDF+=V6VW=vSZXqXqQXotz9LrfuXQ () mail ! gmail ! com
[Download RAW message or body]

On Wed, Apr 25, 2012 at 7:04 PM, John Spencer
<maillist-busybox@barfooze.de> wrote:
> it only works if input is pre-sorted and/or same lines happens to be on t=
he
> same linenumber in both files
>
> root:/src$ comm
> BusyBox v1.19.4 (2012-04-25 16:09:00 UTC) multi-call binary.
>
> Usage: comm [-123] FILE1 FILE2
>
> Compare FILE1 with FILE2
>
> =A0 =A0 =A0 =A0-1 =A0 =A0 =A0Suppress lines unique to FILE1
> =A0 =A0 =A0 =A0-2 =A0 =A0 =A0Suppress lines unique to FILE2
> =A0 =A0 =A0 =A0-3 =A0 =A0 =A0Suppress lines common to both files
>
> root:/src$ cat test1.txt
> a
> b
> c
>
> root:/src$ cat test2.txt
> d
> b
> root:/src$ comm test1.txt test2.txt
> a
> b
> c
>
> =A0 =A0 =A0 =A0d
> =A0 =A0 =A0 =A0b

comm from GNU coreutils 8.1 does the same.

-- =

vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic