Created
December 28, 2022 03:41
-
-
Save jgwill/f3dfaa6ae02af4e737b357de8bb7512c to your computer and use it in GitHub Desktop.
Bash Rename files with parenthesis and remove them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdir=$(pwd);for d in $(cat _dist.txt);do cd $d;for f in *;do echo $f;fx1=${f//\(/_};fx=${fx1//\)/};mv "$f" "$fx";done;cd $cdir;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment