Re: [PATCH] Completion must sort before using uniq
- From
- Sascha Cunz <sascha-ml@babbelbox.org>
- Date
- Nov 23, 2012, 12:26 UTC
- Message-ID
- <2630847.8aaR79v5Od@blacky>
- In-Reply-To
- <003b01cdc974$4cdd1900$e6974b00$@schmitz-digital.de>
> I can't see the difference and in fact don't understand uniq's -u option al > all Linux man pages say: "only print unique lines", but that is what uniq > does by default anyway?!?
>From the german translation of uniq's man-page, you can deduct that "only
print unique lines" actually means: "print lines that are _not repeated_ in the input".
A short test confirms that. i.e.:
printf "a\nb\nb\nc\n" | uniq -u
gives: a c
Sascha