Bonjour patomicho,
Tu peux essayer ainsi
- pour renommer les fichiers :
find ton_Repertoire | tac | xargs rename 'y/A-Z/a-z/'
...
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| find testwww
testwww
testwww/abc
testwww/abc/zYf.php
testwww/abc/KlM.htm
testwww/abc/zYf.htm
testwww/abc/KlM.html
testwww/abc/KlM.php
testwww/abc/zYf.html
testwww/def
testwww/def/zYf.php
testwww/def/KlM.htm
testwww/def/zYf.htm
testwww/def/KlM.html
testwww/def/KlM.php
testwww/def/zYf.html
find testwww | tac | xargs rename 'y/A-Z/a-z/'
find testwww
testwww
testwww/abc
testwww/abc/zyf.html
testwww/abc/klm.htm
testwww/abc/zyf.htm
testwww/abc/klm.html
testwww/abc/zyf.php
testwww/abc/klm.php
testwww/def
testwww/def/zyf.html
testwww/def/klm.htm
testwww/def/zyf.htm
testwww/def/klm.html
testwww/def/zyf.php
testwww/def/klm.php |
puis,
- pour mettre en minuscules les chemins dans les liens des pages :
find ton_Repertoire -type f -iname "*.php" -o -iname "*.htm" -o -iname "*.html" -exec sed 's/href="\([^"]*\)/href="\L\1/' {} \;
...
?
NB : prend quand même soin d'effectuer une sauvegarde du site!
Partager