Comments (5)
It'd be silly for duff
to replicate all the options not only in find
but all other file-finding tools. That's why you can use duff
as a filter. There are even examples of this in the manpage. To use one of your examples above:
find -size +1G | duff
If your file names contain whitespace, you need to use null-termination:
find -size +1G -print0 | duff -0 | xargs -n1 -0 echo
The customizable header (-f
) is intended to help with the building of pipes at the other end. For example, if you set it to just output the number of files in each cluster, you get data easily iterable from scripts. See the bundled join-duplicates.sh
for an example of this.
from duff.
You're right, this is easily pipable. I'm closing this ticket.
I must have been thinking of some other non-pipable functionality. I do have one question (probably not supposed to be in this ticket) - how does duff buffer the list of files that are fed in from find
? Is it by number of bytes, and does the shell control that rather than duff? What I do know is that duff doesn't buffer the entire input before beginning the duplicate detection - thankfully. Though as a consequence can't identify all duplicates.
from duff.
Duff processes files a little and performs an initial sort as they come in, but most of the work cannot be started until all files have been collected, exactly because it does report all duplicates.
from duff.
from duff.
The process_args
function provides a nice high-level overview of what duff does and in what order.
from duff.
Related Issues (11)
- Argument to list unique files HOT 3
- Make sizes in cluster header human readable with "-h" flag HOT 9
- Documentation HOT 2
- memory optimization HOT 2
- Build from source failed on Ubuntu 16.04 HOT 1
- Sort by size? HOT 1
- Add repology badge to the website? HOT 1
- xxhash
- make -p active by default (don't follow hardlinks)
- Dreda.org registration lapsed, and has been picked up by a bad actor. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duff.