I'm new to UNIX and have got some of the basics down, but I've got a puzzle I'm having difficulty working out.
Scenario:
Have FILE_A.JPG in DIR_A
Need to copy FILE_A 200 times and rename it 200 different names. List of 200 names in NAME_FILE.TXT
After renaming 200 files, need to move each file into a specific directory based on file name.
EXAMPLE:
FILE is in CURRENT_DIR needs to move to DESTINATION_DIR
234546 is in DIR_A needs to move to DIR_B/6/46
498721 is in DIR_A needs to move to DIR_B/1/21
873489 is in DIR_A needs to move to DIR_B/9/89
459323 is in DIR_A needs to move to DIR_B/3/23
PUZZLE: How to copy & rename the 200 files and then move each file into the new destination directory?
Any recommendations for me?