exclude certain files from fdupes output

Curt Tresenriter ctres at grics.net
Mon Feb 16 13:19:13 UTC 2015


On Sat, 14 Feb 2015 11:28:02 -0800
Randy Williamson <ac7nj at arrl.net> wrote:
 
> Fdupes is for finding duplicate files. What you are asking for is to
> find a specific file type. Then you want to open the files in a
> spreadsheet. I think you are going about the task wrong.
> A bash script or a python script can locate all of the audio files
> collect them and do comparison. It's hard to give you specifics
> without more information.
> I recommend writing down what you want to do one thing at a time,
> like you were programing the computer in plain English. Then start
> finding the syntax for your script.
> 
> Randy ac7nj

I've been wanting to look into scripting but haven't found the time yet.

The answer I came up with was to run fdupes then used sed to remove all
lines containing jpeg, jpg, txt, png, etc. from the output file.
What I'm left with is only mp3. ogg, flac, m4a, etc.
Probably not the most elegant solution but it worked.

Thanks for your input.



More information about the ubuntu-users mailing list