Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 44777 invoked from network); 7 Oct 2008 17:04:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2008 17:04:44 -0000 Received: (qmail 26880 invoked by uid 500); 7 Oct 2008 17:04:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 26844 invoked by uid 500); 7 Oct 2008 17:04:40 -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 26826 invoked by uid 99); 7 Oct 2008 17:04:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 10:04:40 -0700 X-ASF-Spam-Status: No, hits=-3.9 required=10.0 tests=DNS_FROM_SECURITYSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.38] (HELO psmtp.com) (64.18.1.38) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 17:03:34 +0000 Received: from source ([192.150.8.22]) by exprod6ob117.postini.com ([64.18.5.12]) with SMTP; Tue, 07 Oct 2008 10:01:47 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id m97H1jE0024399 for ; Tue, 7 Oct 2008 10:01:46 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id m97H1iiq018801 for ; Tue, 7 Oct 2008 10:01:44 -0700 (PDT) Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Tue, 7 Oct 2008 10:01:44 -0700 From: Ben Tu To: Ant Users List Date: Tue, 7 Oct 2008 10:01:36 -0700 Subject: find file in specify directory and its sub-directory Thread-Topic: find file in specify directory and its sub-directory Thread-Index: AckoBxwmQJGjv1g9Qma6imnuiGcI2AAiBWqQAAO3k8A= Message-ID: References: <32C9659BBD4DE64DA4B361F6E00FAAE808187152@EMSS04M23.us.lmco.com> <32C9659BBD4DE64DA4B361F6E00FAAE808187154@EMSS04M23.us.lmco.com> In-Reply-To: <32C9659BBD4DE64DA4B361F6E00FAAE808187154@EMSS04M23.us.lmco.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-hashedpuzzle: CcQ7 C6tM DGwL DmK5 ENBC EpTS FEE3 FVqB FYjW F/Kp GA4T HNV9 HPQQ HPrK IENd KLHb;1;dQBzAGUAcgBAAGEAbgB0AC4AYQBwAGEAYwBoAGUALgBvAHIAZwA=;Sosha1_v1;7;{B391E74B-8644-4A0E-9953-7D486E45D492};YgB0AHUAQABhAGQAbwBiAGUALgBjAG8AbQA=;Tue, 07 Oct 2008 17:01:36 GMT;ZgBpAG4AZAAgAGYAaQBsAGUAIABpAG4AIABzAHAAZQBjAGkAZgB5ACAAZABpAHIAZQBjAHQAbwByAHkAIABhAG4AZAAgAGkAdABzACAAcwB1AGIALQBkAGkAcgBlAGMAdABvAHIAeQA= x-cr-puzzleid: {B391E74B-8644-4A0E-9953-7D486E45D492} acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I would like to accomplish the similar task below in ant script. Does anyone know how? find . -name '*.class' | sed -e 's/^.\///g' -e 's/\$/\\\$/g' | sort > log.t= xt thanks --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org