I am very new to shell scripts and I was wondering if anyone could post a script which takes tv files from a TMP folder and places it to a different folder. The files and folder name syntax will be the following

File to be moved
TV show name - SXXEYY - episode title.avi

Folder location
/data/media/tv/TV show name/Season XX/

If the folder does not exist than the script should make the folder then move the file. Any help would be great - can you also please use comments so I can learn what the commands are doing - it would greatly help me understand the language.

Thanks again.

Any ideas? I thought this would be a somewhat easy one... Again thanks for your time and help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.