- Changing from Linux Mint Cinammon to Mint KDE causes something with the filenames char sets of all partitions! Now the names are messed. I've already tried to change locales, unsuccessfully
- The problem concerns accented characters (I'm a brazilian portuguese speaker)
- The big problem is that I have to deal with approximately 60GB+ of 60.000+ files (PDFs mainly), in 1000+ folders and subfolders in a fat32 partition
- So I found over internet this command line that works fine for me, but it lacks the recursive feature, i.e., it does not apply the changes to the subfolders, and the files contained in subfolders. It just apply the desired changes (that is: rename the file from one char set to another) to the actual plain single folder
My question is: How to turn this command line recursive? Is it even possible?
ls -1 | while read arquivo ; do novo="`echo $arquivo \
| iconv -f UTF-8 -t ISO-8859-1`"; if [ "$novo" != "$arquivo" ] ;\
then mv "$arquivo" "$novo"; fi done