From: "Markus Schönhaber" <cygwin@list-post.mks-mail.de>
To: cygwin@cygwin.com
Subject: Re: uniq not working
Date: Tue, 11 Oct 2016 12:54:00 -0000 [thread overview]
Message-ID: <d806984a-4d8d-bc8b-3e5a-2d2603f9a0be@list-post.mks-mail.de> (raw)
In-Reply-To: <CAMZ6u3uuA8Jvz5pKtcrmb6M01WfEFVBduCPv23iu1FgKb=C+UQ@mail.gmail.com>
Am 11.10.2016 um 12:43 schrieb Felipe Vieira:
> the uniq program seems to be faulty on my cygwin:
>
[...]
> /tmp » uniq -c u.txt
> 1 1
> 1 2
> 1 3
> 1 4
> 1 5
> 1 1
> 1 2
> 1 3
> 1 6
> 1 7
> 1 8
> 1
> /tmp »
>
> As you can see it does not eliminate duplicate lines.
> This file was created with vim. Same results if created with windows notepad.
> What am I missing?
From man 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'.
--
Regards
mks
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2016-10-11 10:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-11 10:56 Felipe Vieira
2016-10-11 10:58 ` Csaba Raduly
2016-10-11 14:20 ` Henry S. Thompson
2016-10-11 14:33 ` Andrey Repin
2016-10-11 16:02 ` Henry S. Thompson
2016-10-11 12:54 ` Markus Schönhaber [this message]
2016-10-13 16:58 Felipe Vieira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d806984a-4d8d-bc8b-3e5a-2d2603f9a0be@list-post.mks-mail.de \
--to=cygwin@list-post.mks-mail.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).