2023-09-11, 09:34 AM
(This post was last modified: 2023-09-11, 09:37 AM by JRPGod. Edited 3 times in total.)
Try
find /data/download/48E1 \( -iname \*.jpg -o -iname \*.png -o -iname \*.jpeg \) -type f -exec rm -f {} \;
or perhaps a little cleaner
find /data/download/48E1 \( -iname \*.jpg -o -iname \*.png -o -iname \*.jpeg \) -type f -delete
the -o means logical OR and iname instead of name should make it case-insensitive, so it capures jpeg and JPEG and Jpeg in one call.
I haven't tested this since I've only access to a Windows machine atm, but it should be close if not spot on.
find /data/download/48E1 \( -iname \*.jpg -o -iname \*.png -o -iname \*.jpeg \) -type f -exec rm -f {} \;
or perhaps a little cleaner
find /data/download/48E1 \( -iname \*.jpg -o -iname \*.png -o -iname \*.jpeg \) -type f -delete
the -o means logical OR and iname instead of name should make it case-insensitive, so it capures jpeg and JPEG and Jpeg in one call.
I haven't tested this since I've only access to a Windows machine atm, but it should be close if not spot on.