====Convertir les noms de fichiers en lowercase==== ===Méthode propre et lente=== Il faut commencer par obtenir le nombre de sous-dossier maximum : [[https://unix.stackexchange.com/questions/369453/how-to-find-a-depth-of-a-directory|How to find a depth of a directory]] {{ :cmd:mv:command_line_-_how_to_find_a_depth_of_a_directory_-_unix_linux_stack_exchange_2020-04-28_10_37_57_pm_.html |Archive du 06/06/2017 le 28/04/2020}} find . -printf '%d\n' | sort -rn | head -1 Puis faire une boucle en renommant progressivement l'arborescence : [[https://stackoverflow.com/questions/152514/how-to-rename-all-folders-and-files-to-lowercase-on-linux|How to rename all folders and files to lowercase on Linux?]] {{ :cmd:mv:how_do_i_rename_all_folders_and_files_to_lowercase_on_linux_-_stack_overflow_2020-04-28_10_38_05_pm_.html |Archive du 30/09/2008 le 28/04/2020}} for j in $(seq 1 `find . -printf '%d\n' | sort -rn | head -1`); do for i in $( find -maxdepth $j | grep [A-Z] ); do mv -i "$i" "`echo $i | tr 'A-Z' 'a-z'`"; done; done; ===Méthode rapide et bourrin=== zip -r foo.zip foo/* unzip -LL foo.zip