I've tried to make a bash script that will help me move specific subfolders from my folder.
The issue is,in the main folder photos
I have folders named like this:
1
,2
,3
,4
,5
,6
,7
,8
,9
,0
and inside them the folders with exact name repeat,and then again the same folder structure repeats. The subfolders I want to move are in the last folder with one character in their name.The subfolders I want to move have 2 or more characters in their name. Folder structure is 0-9
/0-9
/0-9
/subdir
The destination folder isn't specified,so let's say it is desktop/photos1
.
Example: photos/0/0/0/23345
photos/1/9/0/12578
If two subdirectories have the same name e.g. photos/0/0/0/23345
and photos/1/1/1/23345
I would like to rename one of them. I'm on OSX