MicroUtils/local.migrate.folder.sh

13 lines
265 B
Bash
Raw Normal View History

2023-08-05 07:49:45 +00:00
#!/bin/bash
2023-08-08 12:45:36 +00:00
function renameFolders() {
for folder in $(find . -depth -type d -name "$1");
do
sedString="s/$1/$2/g"
newFolder="$(echo $folder | sed $sedString)"
echo $folder "$newFolder"
done
}
renameFolders "androidTest" "androidUnitTest"