adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.42k stars 186 forks source link

Is there a way to remove all duplicate files by file type? #156

Open githubuser00 opened 3 years ago

githubuser00 commented 3 years ago

Is there a way to remove all duplicate files by file type?

for example: fdupes -rdN -type=JPG /mnt or fdupes -rdN -name=*.jpg

senoclub commented 2 years ago

....or negative of that function!
For example, choose for deletion all files, exclude specific extension: fdupes -rdN -noext=xmp;xml;crc

shaun-ba commented 1 year ago

Also came looking for this, would love to run this against image only.

EdwinKM commented 1 year ago

This was my main reason to switch to the jdupes fork

`exts="avi,divx,f4v,flv,m4v,mkv,mov,mp4,mpe,mpeg,mpg,rm,rmvb,ts,vob,webm,wmv,iso"

jdupes --recurse --ext-filter="onlyext:$exts" --ext-filter="nostr:${transmission_folder}/incomplete/" --print-summarize --size $folder`

Duplicate of https://github.com/adrianlopezroche/fdupes/issues/6

m-chaturvedi commented 1 week ago

I wrote undupes that supports this: https://github.com/m-chaturvedi/undupes