[EMAIL PROTECTED] writes:

> 1.  (*) text/plain          
>
>> 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

 Enjoy shell
-- 
Yves


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to