I have a folder that is full of files and subdirectories. A lot of that is trash, but some of it I want to keep.
Therefore, I want to delete all files of a few certain types (which are the files I don't want or need) and then delete all empty directories and subdirectories.
These commands do not work at all - they do nothing:
find . -name "*.jpg" -type f -delete find . -type d -empty -delete
I'd really appreciate any help at all!