Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: option to invert output (show only non-dupes) #165

Open
ilf opened this issue Feb 4, 2022 · 2 comments
Open

feature: option to invert output (show only non-dupes) #165

ilf opened this issue Feb 4, 2022 · 2 comments

Comments

@ilf
Copy link

ilf commented Feb 4, 2022

I would love to see an option to invert the output. Instead of showing all files that are dupes, show all files that are not dupes.

I assume most of the logic is already there, and should not be hard to implement.

What do you think?

Thanks, and keep up the good work!

@EdwinKM
Copy link

EdwinKM commented Nov 28, 2022

this should not be that difficult to solve with some shell magic. But you hve to create your own filelist also and subtract the items.

The jdupes fork seems to have the feature

[-u --print-unique](https://manpages.debian.org/testing/jdupes/jdupes.1.en.html#u) print only a list of unique (non-duplicate, unmatched) files

@ilf
Copy link
Author

ilf commented Dec 2, 2022

@EdwinKM: Thanks for the pointer!

This is their code to achieve this: https://github.com/jbruchon/jdupes/blob/master/act_printmatches.c#L47

This is the commit: https://github.com/jbruchon/jdupes/commit/5f5ef2a03d76c0eba1e12fa08879dbead107bc60

Do you want to add this, @adrianlopezroche?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants