-
You do realize by 'gay' I mean a man who has sex with other men?
Telnet Command Question - Delete Single File From Multiple Directorys
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
-
virgin by request ;)
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks