public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Felipe Vieira <fmv1992@gmail.com>
To: cygwin@cygwin.com
Subject: Re: uniq not working
Date: Thu, 13 Oct 2016 16:58:00 -0000	[thread overview]
Message-ID: <CAMZ6u3t9zjUiNhV6UAoB74J1L9FuaNR7L0LFEAKk5+rtxBMHDQ@mail.gmail.com> (raw)

On Tue, Oct 11, 2016 at 7:43 AM, Felipe Vieira <fmv1992@gmail.com> wrote:
> Dear mailing list,
>
> the uniq program seems to be faulty on my cygwin:
>
> /tmp » cat u.txt
> 1
> 2
> 3
> 4
> 5
> 1
> 2
> 3
> 6
> 7
> 8
>
>
> /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?
>
> Best,

Thanks Csaba.

I have read the manual but did not understand it completely; missed
one word (adjacent) and that changed everything.

Best regards : )

--
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

             reply	other threads:[~2016-10-13 16:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 16:58 Felipe Vieira [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

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=CAMZ6u3t9zjUiNhV6UAoB74J1L9FuaNR7L0LFEAKk5+rtxBMHDQ@mail.gmail.com \
    --to=fmv1992@gmail.com \
    --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).