Im trying to rename a whole bulks of files with underscores, hashtags and a bunch of characters that the ftp servers have trouble dealing it.
I have always have resorted to do it with
find . -depth -name '* *' \
| while IFS= read -r f ; do
mv -i "$f" "$(dirname "$f")/$(basename "$f"|tr ' ' _)"
done
but I have failed to adapt the tr part to make the change, this way too
....tr '(' '_')"
here I want to change the ( character.
UPDATE
As noted by wjandrea, I did not update the definition in the -name parameter of the find comand, it should be
find . -depth -name '*(*'