mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-18 14:47:15 +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"
|