I am using Ubuntu and want to split a folder of images (30k images) into different folders. However, I want to sort them (not just splitting into smaller subfolders). I have a file which contains information on the folder destination of the image. The file is structured as:
- 123.jpg, 1
- 124.jpg, 2
- 125.jpg, 3
This should be interpreted as: image 123.jpg to folder 1, image 124.jpg to folder 2, image 125.jpg to folder 3.
Is there an efficient way to do this in Ubuntu?