I've got a huge list of files that are not being used anymore on my web server. I'd like to move them all to the root directory in a folder called not_used. Anyone know how to automate this process? I want to be able to provide the list in a text file and have it cut from the current location and paste to the new location. Thanks
@ redinlove, directory names don't need to be escaped. It just causes confusion and could potentially break the system. cpufreak3, you could setup a cronjob that does this. It should be as simple as a one-line command like this: for files in `cat /path/to/text_file.txt`;do mv $files /not_used/;done Code (markup):
Well, I don't have direct access to the server... It is owned by a University so all I've got is FTP access. I'm not too sure what cron but I assume I can't use it. I was hoping to use some type of PHP script.