×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Fix broken Umlauts in Filenames

    rename.sh:

    [pre] for i in *

     do
     x=$(echo $i | iconv -f utf8 -t ascii//TRANSLIT -c)
     if [ "$i" != "$x" ];
     then
       echo "$i --TO-- $x"
       #mv "$i" "$x"
     fi
     if [ -d "$x" ]; then
       cd "$x"
       echo "cd to $x"
       /path/to/rename.sh
       cd ..
     fi
    

    done [/pre]

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.