Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 37180 invoked from network); 9 Nov 2009 17:45:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 17:45:42 -0000 Received: (qmail 67014 invoked by uid 500); 9 Nov 2009 17:45:41 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66928 invoked by uid 500); 9 Nov 2009 17:45:41 -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 66918 invoked by uid 99); 9 Nov 2009 17:45:41 -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 17:45:41 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gudnabrsam@gmail.com designates 74.125.78.144 as permitted sender) Received: from [74.125.78.144] (HELO ey-out-1920.google.com) (74.125.78.144) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 17:45:38 +0000 Received: by ey-out-1920.google.com with SMTP id 3so1054675eyh.0 for ; Mon, 09 Nov 2009 09:45:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=86yTiMbSKsFzRypgOYwr6w7MrYOdHezF7b9NlK6aWU4=; b=fPvDtNPURCu8VShzVZN3+Xec4W//giZ0aNd11tDrJ4bQD9dq2dnNdTXt0W2kuTsO5j KjG1EbSGANHM8VMOm/tWbglry7FEyRy5o1hwwNz2ctoB/y8mPaY2C5uZLRTqGUpkya89 y5vtd71/znD8tzulZyaLYkHphxhbBP123Fkjc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=EYq/7j4wVwFN0aiOkEEJrE+rDEHrTHjCHWWdaJ3/NEISWCo94UBXrO4Kvjn5JzTjbW fRvCJPPCxI9XmAGPUaVLVG+Jlp1l2jTSLppzcrtvSdpPf+LNI3dnEsSJLzsDM5virFhr 57/vhsxLjsTKxrNmhxDvtGp6NsTy3R1PrgAOo= Received: by 10.216.91.67 with SMTP id g45mr2708716wef.190.1257788716835; Mon, 09 Nov 2009 09:45:16 -0800 (PST) Received: from ?192.168.0.4? ([72.169.48.55]) by mx.google.com with ESMTPS id g11sm9420925gve.5.2009.11.09.09.45.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Nov 2009 09:45:16 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <26268505.post@talk.nabble.com> References: <486A578D.3040206@fastmail.fm> <439314.42606.qm@web55108.mail.re4.yahoo.com> <26268505.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <303C477F-0136-4BBE-A9C6-5FBA81485859@gmail.com> Content-Transfer-Encoding: 7bit From: Matt Benson Subject: Re: How do you sort and remove duplicates lines from a file ? Date: Mon, 9 Nov 2009 11:45:10 -0600 To: "Ant Users List" X-Mailer: Apple Mail (2.753.1) Well, my example you cited sorts and removes duplicates. If you don't want to sort them, take out the and the directly. On Nov 9, 2009, at 9:41 AM, cvsusr wrote: > > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org