Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 57218 invoked from network); 1 Jul 2008 17:54:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 17:54:26 -0000 Received: (qmail 8191 invoked by uid 500); 1 Jul 2008 17:54:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 7779 invoked by uid 500); 1 Jul 2008 17:54:24 -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 7768 invoked by uid 99); 1 Jul 2008 17:54:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 10:54:23 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.69.200.58] (HELO pop05.mail.atl.earthlink.net) (207.69.200.58) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 17:53:30 +0000 Received: from nc-71-49-176-136.dhcp.embarqhsd.net ([71.49.176.136] helo=flossware.homelinux.org) by pop05.mail.atl.earthlink.net with esmtp (Exim 3.36 #1) id 1KDk33-0002TR-00; Tue, 01 Jul 2008 13:53:49 -0400 Received: from adminserver.flossware.com (adminserver.flossware.com [192.168.168.2]) by flossware.homelinux.org (Postfix) with ESMTP id 20F941F8067; Tue, 1 Jul 2008 13:53:49 -0400 (EDT) Date: Tue, 1 Jul 2008 13:53:49 -0400 (EDT) From: "Scot P. Floess" X-X-Sender: sfloess@adminserver.flossware.com To: Jane Shen cc: Ant Users List Subject: RE: How do you sort and remove duplicates lines from a file ? In-Reply-To: Message-ID: References: <486A578D.3040206@fastmail.fm> User-Agent: Alpine 1.10 (LRH 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org 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