Skip to main content

Thread: Removing all .jpg's from folder & subfolders


i have been using linux 2 years, have noob question:
wondering easiest way delete .jpg images folder containing subfolders (i want delete them in subfolders too). @ first thought easy rm -rvf *.jpg, not seem work. why this? there way can without crazy shell script? (perhaps using pipe grep rm, or odd that?). in advance.

this want:

code:
find /target/directory -name '*.jpg' -type f -delete
i'm sure understand need careful this.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Removing all .jpg's from folder & subfolders


Ubuntu

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support