What this does
This find command finds and moves all directories to /dest/dir that matches the 'dirnamepattern'.
'dirnamepattern' could be aws, go or tmp, or whatever.
Actual command
find . -type d -name '*dirnamepattern*' -exec mv -t /dest/dir {} +
Test before try
I'm not sure if there's a dry run …
read more