LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   creating a script that will move completed downloads into other folders? (https://www.linuxquestions.org/questions/linux-newbie-8/creating-a-script-that-will-move-completed-downloads-into-other-folders-4175439548/)

Springs 12-01-2012 05:07 AM

creating a script that will move completed downloads into other folders?
 
Hi all,

I'm trying to write a script that will move completed downloads from my main folder into 3 other folders where they are processed further by other programs.

I can create a file with names of the completed files but from here I'm stuck.

So depending if its a movie or a tv show it needs to go into one folder or another. To filter them out I can provide another list with the tv show names on or if they can be filtered out using the series / episode ie S**E** then any other video format to be moved into another folder.

Anything else that's left over gets put into a general folder.

Some files are in folders which have spaces in and other symbols and others are just the file itself.

If someone can offer some assistance that would be good.


So far I run a command and out put that into a file. I then use awk to print the text in certain columns into another file which gives me my list of files / folders to be moved.

unSpawn 12-01-2012 06:46 AM

Quote:

Originally Posted by Springs (Post 4840656)
I'm trying to write a script (..).
I can create a file with names of the completed files but from here I'm stuck. (..)
So far I run a command and out put that into a file. I then use awk to print the text in certain columns into another file which gives me my list of files / folders to be moved.

Post what code you've got already or post at least post all the commands that shows you processing one item.


All times are GMT -5. The time now is 09:20 PM.