View Full Version : Automated script to delete certain files
I want a script that should search for particular folders/paths (eg /home) and identify certain files (eg *.mp3) and delete them. The script maybe written in perl/shell.
The advanced version of the script may include the facility to check for files (eg mp3ifle with extension changed, using the file command in linux).
This prgram maybe run at a particular schedule, using cron, to delete unwanted files on the disk.
GarryKiely
08-02-06, 03:42 PM
I am also looking for a script/program that could do this job. I would like to sort out my music folder, where I have many different folders that sometimes go 3 or 4 deep. There are files that I do not want and others I do.
I would like a program that can go through the entire library, and convert all the AAC files in to mp3 that haven’t already been converted, if there are any ACC files with duplicate mp3, to then delete them.
Big job I know, but I have been trying to go through this by hand and it is taking a very long time, and I am afraid my coding skills only go as far as simple visual basic.
Can any one help???
Thank you,
Garry Kiely
reportingsjr
08-03-06, 05:26 PM
Well, if you want to do i like a few times daily you can set up a cron job if you have shell access. For the deleting/renaming you will have to use the ftp commands. I can help you in a little bit, ive never actually use the ftp commands so I will have to look into them.
Is the stuff residing on a UNIX box?
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.