[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with uniq command
From: |
Andreas Schwab |
Subject: |
Re: Problem with uniq command |
Date: |
Thu, 22 Feb 2007 18:58:57 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
Miroslaw Kozielski <address@hidden> writes:
> /I think that output should be:
>
> / *2 ba111*.
> 1 ba112.
> 1 bs112.
> 1 bm123.
> 1 ba123.
> /
> How can I resolve this problem?
>From the coreutils docs:
The input need not be sorted, but repeated input lines are detected
only if they are adjacent. If you want to discard non-adjacent
duplicate lines, perhaps you want to use `sort -u'. *Note sort
invocation::.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."