GENWiki

Premier IT Outsourcing and Support Services within the UK

User Tools

Site Tools


bash:reanem_all_files_to_lower_case_names_recursively
find .  -type f -print0 | xargs -0n 1 bash -c \
's=$(dirname "$0")/$(basename "$0"); 
d=$(dirname "$0")/$(basename "$0"|tr "[A-Z]" "[a-z]"); mv -f "$s" "$d"'
while IFS='' read -rd '' dname; do  mv "$dname" "${dname,,}";  done < <( find . -depth -type d -print0 )
/data/webs/external/dokuwiki/data/pages/bash/reanem_all_files_to_lower_case_names_recursively.txt · Last modified: 2019/05/13 08:08 by genadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki