How to move All Sub Directories to another Directory
Author: Venkata Sudhakar
We can move only sub directories in a given directory using (*/) regex. Similary we may use specific word prefix/suffix regex patterns to move only the required sub directories.
The below command moves all subdirectories under bethecoder folder to venkat
mv /home/ec2-user/bethecoder/*/ /home/ec2-user/venkat