I have a directory named
temp. Inside this folder, I have multiple sub-folders ( I don't know the exact number ). Now I create another sub-folder inside
Untitled. Now I want to move all the other sub-folders inside
Let's say I have 3 folders inside temp named a,b,c. Now I create
Untitled. So temp now contains 4 folders a,b,c and Untitled. After performing the operation temp will contain only the Untitled folder with Untitled containing a,b,c.
How can I achieve this using bash?
My Bash version ( on Ubuntu 16.04 )
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)