Files
linux-scripts/WindowsRenameFix.sh
2023-07-18 20:55:12 -05:00

9 lines
434 B
Bash
Executable File

#!/bin/bash
echo read the comments in this file see a fix
# for f in ./*'('*')'*; do mv -i "$f" "${f/ (*)/}"; done
# for f in ./*/*'('*')'*; do mv -i "$f" "${f/ (*)/}"; done
# for f in ./*/*'('*')'*; do mv -i "$f" "${f/ (*)/}"; done
# etc, for the directory you're in that you want to fix.
# I know this is a garbage implementation, but not the best at bash scripting, so don't know how to recurse through each individual directory