mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-09-07 19:26:54 +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"
|