public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* uniq not working
@ 2016-10-11 10:56 Felipe Vieira
  2016-10-11 10:58 ` Csaba Raduly
  2016-10-11 12:54 ` Markus Schönhaber
  0 siblings, 2 replies; 7+ messages in thread
From: Felipe Vieira @ 2016-10-11 10:56 UTC (permalink / raw)
  To: cygwin

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,

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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: uniq not working
@ 2016-10-13 16:58 Felipe Vieira
  0 siblings, 0 replies; 7+ messages in thread
From: Felipe Vieira @ 2016-10-13 16:58 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-13 16:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-11 10:56 uniq not working 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
2016-10-13 16:58 Felipe Vieira

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