Hi,
- First cd to the dir in question cd /path/to/jpgdirs,
- Then use find and the appropriate options: find . -type f -iname "*.jpg" this will find and print all the jpg's (and is a check to see if all is ok, do this before the next command!),
- If all is well, extend the find command to remove the jpg's: find . -type f -iname "*.jpg" -exec rm -f {} \;
Hope this helps.
|