I have several files with encoding issues in their file names (German umlauts, burned on CD with Windows, read by Windows and synced to Linux with Seafile. Something, somewhere went wrong...).Bash and zsh only show ? instead of umlauts, stat shows something like$ stat Ergnzung.doc File: Erg\344nzung.docSize: 2609152         Blocks: 5096       IO Block: 4096   regular fileDevice: 806h/2054d      Inode: 12321475    Links: 1I can enter the filename only with autocompletion. How do I rename the file? The affected files seem to be unreadable by LibreOffice (or other programs for other file types), they complain about No such file or device.I was thinking about mv --by-inode 12321475 Ergnzung.doc, but there's no --by-inode switch for mv. What else can I do?
mv file with garbled name by inode number?
shell;rename;character encoding;mv;inode
You could try:find . -inum 12321475 -exec mv {} new-filename \;orfind . -inum 12321475 -print0 | xargs -0 mv -t new-filenameGenerally I prefer xargs over exec.  Google for why.  It's tricky though.  See Find -exec + vs find | xargs. Which one to choose?