Rm command - Putty
Hi
I have a lot of photos in a lot of folders (all under the /stars folder) and every picture has a thumbnail, too. The thumbnails have a '_t' in their name, like this 'picname_t.jpg'.
What I'd like to do is to delete all the thumbs ('*_t.jpg' files) recursively, using one ssh command for the /stars folder.
How can I do this?
Thanks.
P.S. if it matters, some folders inside /stars have spaces in their names and I'm using Putty to access the server.
wattaman
Junior Poster in Training
95 posts since May 2009
Reputation Points: 10
Solved Threads: 0
It didn't worked for my server but I used this
find . -name \*_t.jpg -delete
Anyway, it's your credit, I didn't know about thefind command
Thanks, Joe
wattaman
Junior Poster in Training
95 posts since May 2009
Reputation Points: 10
Solved Threads: 0