Results 1 to 2 of 2
I have a folder named music. From within that folder, i want to be able to do something like rm -r *.jpg and have all the jpg's removed from the ...
- 08-18-2007 #1Just Joined!
- Join Date
- Aug 2006
- Posts
- 2
Need help deleting all jpg files in folder and subfolders.
I have a folder named music. From within that folder, i want to be able to do something like rm -r *.jpg and have all the jpg's removed from the folder and all subfolders. I can't seem to get the syntax correct for this. Anyone know a quick easy way to do it?
- 08-18-2007 #2
You can do something like
Code:$find . -name "*.jpg" -exec rm {} \;


Reply With Quote