mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-14 12:23:49 +00:00
13 lines
265 B
Bash
Executable File
13 lines
265 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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"
|