Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 44534 invoked from network); 5 Nov 2002 21:45:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Nov 2002 21:45:55 -0000 Received: (qmail 26037 invoked by uid 97); 5 Nov 2002 21:46:41 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 26007 invoked by uid 97); 5 Nov 2002 21:46:40 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 25994 invoked by uid 98); 5 Nov 2002 21:46:39 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Server-Uuid: 3789b954-9c4e-11d3-af68-0008c73b0911 Message-ID: From: "Narayanan, Gopalakrishnan" To: "'ant-user@jakarta.apache.org'" Subject: RegExp and Windows directories Date: Tue, 5 Nov 2002 16:45:32 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 11D6E38E730749-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have a set of directories in the form DeploymentDescriptors -- Bean1 - ejb-jar.xml - weblogic-ejb-jar.xml -- Bean2 - ejb-jar.xml - weblogic-ejb-jar.xml --. - ejb-jar.xml - weblogic-ejb-jar.xml --BeanX - ejb-jar.xml - weblogic-ejb-jar.xml What I need to do is copy all the xml files one directory up with the parent directory's name prepended to the xml file.(Something like DeploymentDescriptors/Bean1-ejb-jar.xml).I am using the following piece of script to do this but it fails on Windows 2000 machine. Can anyone enlighten me how to escape the \ and $ in this case? -- To unsubscribe, e-mail: For additional commands, e-mail: