#!/bin/bash # /usr/local/bin/thumbs_no_recurse # http://crystalfaeries.net/posix/bin/thumbs_no_recurse # celeste:crystalfaery 2016-08-06 11:21:36+00:00 # thumbs_no_recurse recursively removes thumbnail folders from thumbnail folders from folders where users might have copied or moved things. nice find \ $( nice find /home/ /media/ /mnt/ /opt/ /srv/ /usr/ /var/ -iname '*thumb*' -type d -print ) \ -iname '*thumb*' -type d -exec rm -rf {} \;