OK,
So complete newbie here. I would normally do this in PHP or through my FTP program script but I can't in this case (the files are not coming from me, coming from a third party FTP upload).
I have an FTP server (Linux) accepting files coming in from a standard FTP program. Each file will have a unique name like
1a2b.jpg
What I need to do is setup a cron job that does the following:
Reads all the .jpg files in the directory
For each file
parse the filename and get the 1a2b portion
create a subdirectory with the parsed filename = 1a2b
move the 1a2b.jpg file to the 1a2b folder
copy an existing index.html file to the 1a2b folder
Am reading up on shell scripting at present but any help or pointers to threads / info on this greatly appreciated...