Le 30/12/05, Christophe Gaubert <[EMAIL PROTECTED]> a
écrit :
> J'ai bien peur que ça foire si il y a un nom de fichier avec un
> espace...
Un raffinement et un contournement de ce problème d'espaces :
-------------------------------------------------------------
#!/bin/sh
# $1 : la classe cherchée
IFS='
'
for jarfile in $(find . -name *.jar -print); do
jar -tf "$jarfile" | grep --label="$jarfile " -H "$1"
done
----------------------------------------------------------------
Evidemment, si tu as un nom de fichier qui contient un retour chariot...
--
Christophe Gaubert
http://perso.wanadoo.fr/christophe.gaubert
Mail posté depuis un système libre GNU/Linux
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________