Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 24741 invoked from network); 7 Dec 2004 15:50:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 15:50:25 -0000 Received: (qmail 34800 invoked by uid 500); 7 Dec 2004 15:49:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34752 invoked by uid 500); 7 Dec 2004 15:49:12 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 34737 invoked by uid 99); 7 Dec 2004 15:49:11 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_60_70,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dnsinet.rzf-nrw.de (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Dec 2004 07:49:08 -0800 Received: from z011100.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id iB7Fmx7j020329 for ; Tue, 7 Dec 2004 16:48:59 +0100 Received: from z011104.bk.fin.local ([130.11.7.104]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Tue, 7 Dec 2004 16:49:01 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Tue, 7 Dec 2004 16:49:01 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23F94D@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: AW: How to delete files from a zip/jar? Date: Tue, 7 Dec 2004 16:49:01 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4DC74.4561F060" X-OriginalArrivalTime: 07 Dec 2004 15:49:01.0189 (UTC) FILETIME=[4566AB50:01C4DC74] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4DC74.4561F060 Content-Type: text/plain; charset="iso-8859-1" > >> zip -d target.jar `jar -tf compare.jar | grep \.class` > > > > Nice command :-) > > But the > > `jar -tf compare.jar | grep \.class` > > is evaluated by the shell to get a fileset which is passed to > > the zip command. > > > > So I think you have to split that command in two. > > The magic xargs comes here for you !! > > jar tf compare.jar | grep \.class | xargs zip -d target.jar Cool. I knew that *nix systems have better script support than mine *dows :-) http://www.openbsd.org/cgi-bin/man.cgi?query=xargs Jan ------_=_NextPart_001_01C4DC74.4561F060--