I have a set of files ranging like this:
Doc0001-done.xlsx,
Doc0001-status.xlsx,
Doc0001-pending.xlsx,
Doc0002-done.xlsx,
Doc0002-status.xlsx,
Doc0002-pending.xlsx,
Doc0483-done.xlsx,
Doc0483-status.xlsx,
Doc0483-pending.xlsx,
How can I write a script to help me create a separate folder for each prefix and then copy the files accordingly, like create a Folder for Doc0001 and copy the done, status and pending there, and so on with the other prefixes. There are too many, it would take me an eternity. Really thank you in advance.