| Re: [LA-discussions] Bash : script récurent | 
[ Thread Index | Date Index | More linuxarverne.org/discussions Archives ]
On Mon, May 09, 2011 at 05:19:13PM +0200, Daniel Cartron wrote:
> Je dois en avoir oublié qq part car ça ne marche pas...
Ton for...
| for i in $( ... ); do
Les noms de fichiers sont fatalement coupés.
Donc soit:
| find ... -exec echo le fichier "{}" "s'apelle" "{}" ';'
soit
| find ... | while read i; do
|   # on utilise "$i" entre guillemets
| done
Romain
-- 
Romain Tartière <romain@xxxxxxxxxxxx>        http://romain.blogreen.org/
pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
Attachment:
pgprfLzELq_le.pgp
Description: PGP signature
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |