On Thu, Jan 2, 2014 at 6:54 PM, Charles Curley < [email protected]> wrote:
> On Thu, 2 Jan 2014 18:31:40 +0100 > Olli Ries <[email protected]> wrote: > > > I might be missing a detail, but what about: > > > > $> cat A B | uniq > C > > Um, you are missing a detail. From the man page for uniq: > > Note: 'uniq' does not detect repeated lines unless they are > adjacent. You may want to sort the input first, or use `sort > -u' without `uniq'. Also, comparisons honor the rules specified > by `LC_COLLATE'. > > Otherwise, not far from what I suggested. yeah, my bad - and sort -u keeps you even 1 step farther from the useless use of pipes award (compared to cat | sort | uniq) O. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
