mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-04 16:00:10 +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"
|