I started learing powershell two weeks ago. I have the following folders structure
C:\not prepared\Not ready
ABCD_EFGH-whatever\work
IJK-whatever\work
LMN-whatever\work
OPRSTU_WXYZ-whatever\work
C:\Already ready
ABCD_EFGH
IJK
LMN
OPRWXY
The script will run from C:\Already ready. I want to move each work folder from "Not ready\*\" to "Already ready\*" to get
C:\not prepared\Not ready
ABCD_EFGH-whatever
IJK-whatever
LMN-whatever
OPRSTU_WXYZ-whatever
C:\Already ready
ABCD_EFGH\work
IJK\work
LMN\work
OPRWXY\work
I don't want to specify exact folder names, as those may change. Only first 3 characters from Not ready and Already ready subfolders matches. I guess I should read all subfolders' names from both locations, then put them in a array and compare names one by one. What's more, not all folders may always be present in C:\not prepared\Not ready.
Is there are smarter way to do it? Please give me a hint or example.