[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #24974] Document that comm's option "-1", "-2" and "-3" can be
From: |
Andreas Schwab |
Subject: |
Re: [bug #24974] Document that comm's option "-1", "-2" and "-3" can be combined |
Date: |
Mon, 01 Dec 2008 22:00:56 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) |
Pádraig Brady <address@hidden> writes:
> # set operations on sorted files
>
> comm file1 file2 | sed 's/^\t*//' #Union
That only works when no data line begins with a TAB. sort -m does not
have this problem.
> # set operations on unsorted files
>
> sort file1 file2 | uniq #Union
sort -u file1 file2
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."