X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; q=dns; s=default; b=e58 vmUZUkLyenipWFDvMHq+EQ1Fz8gh1zJtpgR376jFMjeSdmiqZ/TCsdiBFHVOWu2X XTwaeN6uIUtgZoR85+pNndC4GRokZx4UlSfY+StkFFSNMgtXsdDUrCCIUwdHETNZ zT20DAUHkaAaC/i7mJ+IH8q7rtoUmahHZ+CR+o4E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; s=default; bh=f+/l6WdXS MjRSXff6dmFHE7G4qE=; b=DzkxdOFcdcGnV1b6pKtZ89kHLeWdnltYThPBhMAvs hN9tmjDK+yjSuEg0I/UKDob5mOFN9xD3Cq8NSTis1uDmEQamHagdWZmFeIS31r1V t1PgVgzmriHQDm88riu9Qce1noRy5ZJSEO5DH08ZKy3ljWEBlY7A2meOgP8Q20ua cU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Csaba, fmv1992gmailcom, U*fmv1992, sk:fmv1992 X-HELO: mail-yb0-f180.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=fObRBvh/XYTaZOFRfqfyP27Sq8/3b4MRCY+iBXmJo4s=; b=WKSKRhTiZmoMamphABdh0nPhfS1tgkQEaxGLJcyZKSi25Q2vcBQjj6ma10D/aXpyrD wYjygA62aEXTILKEgjk0jwBiniMGb+O17FFIFlDvRYcF9Ja24XtDPE05CXx1x41mlStn o0jM+hX6Dm57SVve1Ulwj7l/5d+PCgTC7tJjwnXjwFpf4zaTrETIR5sPdT7eQrGgkUFS MKqoMAxuS7JGfjT0MBSa6FCjCC9AhCU+wjdDxx0YCzSIQM8lJEjS4VLfuAWrN1L5Me3U 7a1H7b5xaOQ8SdpIrHe15Yz68ssB8olF5oLkpjbKA8+xOi6vwFlOUhMvj4lHX9xhcKm8 emBw== X-Gm-Message-State: AA6/9RnqxiettXpZAZCAsWx4tPWFxTyX+jrOZCEqVOYBMIbpqP/5KnIanZLLCxUv2h2fbDpy5pgEXZVhJLKBLg== X-Received: by 10.37.109.2 with SMTP id i2mr6509643ybc.134.1476377856585; Thu, 13 Oct 2016 09:57:36 -0700 (PDT) MIME-Version: 1.0 From: Felipe Vieira Date: Thu, 13 Oct 2016 13:57:36 -0300 Message-ID: Subject: Re: uniq not working To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u9DGvpRe003034 On Tue, Oct 11, 2016 at 7:43 AM, Felipe Vieira 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