Anyone happen to know the telnet command to delete the same file name across a few thousand directorys?
Specifically, the thumbs.db file.
These are all on a unix server if that makes any difference.
Regards,
Lee
Anyone happen to know the telnet command to delete the same file name across a few thousand directorys?
Specifically, the thumbs.db file.
These are all on a unix server if that makes any difference.
Regards,
Lee
Lee, depending on how you are setup on the server, you can use * in a forced delete, ie,
rm -f /var/www/html/images/*/Thumbs.db
rm -f /var/www/html/images/*/*/Thumbs.db
etc...
Not sure if there is another way that is more efficient
cheers,
Luke
A more appropriate way of doing this, would be to use the following:
Go into the directory tree where you wish to start.
find . -name "filename.goes.here"|xargs rm -rf
This will execute the command "rm -rf" for each file that the "find" command returns.
I would highly suggest using SSH instead of telnet, for various reasons. A quick search on google will assist you in finding reasons why telnet is no longer used, and SSH has taken over.
Thanks