I'm looking for an easy way to rename many files on my Synology NAS. find and
sed are available, but not
I can get a list of these files and folders with
find . \( -type d -name "@*" -prune \) -o \( -name "**" \) -print
The above find statement displays all files containing a "/" character, in Synology bash substituted as "".
All the special charactes that I need to replace are:
/ \ : ? ' ’ ´ ’
Depending on the platform and the file sharing protocol being used these characters will look differently, display differently or not at all or will cause different kind of problems.
I can find these characters within Synology bash with:
-name "**" -o -name '*\\*' -o -name "*:*" -o -name "*\?*" -o -name "*\'*" -o -name "*´*" -o -name "*`*"
How can I replace these characters in each of the files and directories it finds? I will start with the character "/".
Thanks a lot for any help!