Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 85969 invoked from network); 9 Nov 2009 15:42:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 15:42:17 -0000 Received: (qmail 24802 invoked by uid 500); 9 Nov 2009 15:42:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24718 invoked by uid 500); 9 Nov 2009 15:42:15 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 24708 invoked by uid 99); 9 Nov 2009 15:42:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 15:42:15 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 15:42:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N7WNM-0002Eb-Rm for user@ant.apache.org; Mon, 09 Nov 2009 07:41:52 -0800 Message-ID: <26268505.post@talk.nabble.com> Date: Mon, 9 Nov 2009 07:41:52 -0800 (PST) From: cvsusr To: user@ant.apache.org Subject: RE: How do you sort and remove duplicates lines from a file ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: spers@rediffmail.com References: <486A578D.3040206@fastmail.fm> <439314.42606.qm@web55108.mail.re4.yahoo.com> Is there any way to remove the duplicate line in a file?? I gone through this post, but didnt find a solution in ant. Please let me know. thanks Scot P. Floess wrote: > > I hate to admit this...I have never used the concat target...I have > completely overlooked it in the past :( > > > On Tue, 1 Jul 2008, Matt Benson wrote: > >> All: I just added the following example to the Ant >> manual in svn: >> >> >> >> >> >> >> >> >> >> >> >> >> -Matt >> >> --- "Scot P. Floess" wrote: >> >>> Jane, I think your sort command would suppose >>> Linux/Unix or Cygwin? >>> >>> Paul, you might look to Ant Contrib's sortlist task: >>> >>> >> http://ant-contrib.sourceforge.net/tasks/tasks/sortlist.html >>> >>> HTH, >>> >>> Flossy >>> >>> On Tue, 1 Jul 2008, Jane Shen wrote: >>> >>>> >>>> Do you mean "remove duplicates lines(not files)"?? >>>> if so, then do >>>> >>>> sort -u "input_file" > "output_file"> Date: Tue, 1 >>> Jul 2008 17:13:01 +0100> From: >>> paul_t100@fastmail.fm> To: user@ant.apache.org> >>> Subject: How do you sort and remove duplicates lines >>> from a file ?> > Hi, is it possible to sort the >>> lines of a file alphabetically, and > remove >>> duplicates files, these seem simple enough thing to >>> do but I cant > find anyway to do it.> > thanks >>> paul> > >>> >> ---------------------------------------------------------------------> >>> To unsubscribe, e-mail: >>> user-unsubscribe@ant.apache.org> For additional >>> commands, e-mail: user-help@ant.apache.org> >>>> >>> >> _________________________________________________________________ >>>> Need to know now? Get instant answers with Windows >>> Live Messenger. >>>> >>> >> http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008 >>> >>> Scot P. Floess >>> 27 Lake Royale >>> Louisburg, NC 27549 >>> >>> 252-478-8087 (Home) >>> 919-754-4592 (Work) >>> >>> Chief Architect JPlate >>> http://sourceforge.net/projects/jplate >>> Chief Architect JavaPIM >>> http://sourceforge.net/projects/javapim >>> >>> Architect Keros >>> http://sourceforge.net/projects/keros >>> >>> >> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: >>> user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: >>> user-help@ant.apache.org >>> >>> >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> >> > > Scot P. Floess > 27 Lake Royale > Louisburg, NC 27549 > > 252-478-8087 (Home) > 919-754-4592 (Work) > > Chief Architect JPlate http://sourceforge.net/projects/jplate > Chief Architect JavaPIM http://sourceforge.net/projects/javapim > > Architect Keros http://sourceforge.net/projects/keros > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > -- View this message in context: http://old.nabble.com/How-do-you-sort-and-remove-duplicates-lines-from-a-file---tp18219748p26268505.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org