Merci Fred mais je n'y arrive toujours pas...
Voici le contenu de mon dossier de test
thomas@thomas-1:~/test_renommage$ ls -lR
.:
total 4
-rw-r--r-- 1 thomas thomas 0 2006-07-01 11:32 é
-rw-r--r-- 1 thomas thomas 0 2006-07-01 11:18 Fifà
drwxr-xr-x 2 thomas thomas 4096 2006-07-01 11:17 temp
./temp:
total 0
-rw-r--r-- 1 thomas thomas 0 2006-07-01 11:17 fichééé
-rw-r--r-- 1 thomas thomas 0 2006-07-01 11:15 Fichier
Donc je lance la ligne que tu m'a donné : (je n'ai pas trop compris où il fallait mettre des retours à la ligne...)
thomas@thomas-1:~/test_renommage$ find /home/thomas/test_renommage/ -type f -exec mv \{} `echo \{} | tr "àçéèêëîïôöùüÂÇÉÈÊËÎÏÔÖÙÜ " "aceeeeiioouuACEEEEIIOOUU_"` \;
mv: `/home/thomas/test_renommage/temp/Fichier' et `/home/thomas/test_renommage/temp/Fichier' identifient le même fichier.
mv: `/home/thomas/test_renommage/temp/fichééé' et `/home/thomas/test_renommage/temp/fichééé' identifient le même fichier.
mv: `/home/thomas/test_renommage/Fifà' et `/home/thomas/test_renommage/Fifà' identifient le même fichier.
mv: `/home/thomas/test_renommage/é' et `/home/thomas/test_renommage/é' identifient le même fichier.
J'en conclus que la commande mv essaie de renommer un fichier vers son nom d'origine, d'où échec. Pour en être sur, j'ai testé avec :
thomas@thomas-1:~/test_renommage$ find /home/thomas/test_renommage/ -type f -exec `echo \{} | tr "àçéèêëîïôöùüÂÇÉÈÊËÎÏÔÖÙÜ " "aceeeeiioouuACEEEEIIOOUU_"` \;
find: /home/thomas/test_renommage/temp/Fichier: Permission non accordée
find: /home/thomas/test_renommage/temp/fichééé: Permission non accordée
find: /home/thomas/test_renommage/Fifà: Permission non accordée
find: /home/thomas/test_renommage/é: Permission non accordée
thomas@thomas-1:~/test_renommage$
Et effectivement j'ai ce problème... Je me suis trompé dans la ligne de commande ?
Poste le Saturday 1 July 2006 11:39:05