this post was submitted on 17 Feb 2025
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/ericlindellnyc on 2025-02-17 05:29:07.

I am using MacOS, so that means BSD linux. The problem is I pipe results of find into rmlint, and the filtering criterion is ignored. find . -type f -iname '.png' | rmlint -xbgev This command will pipe all files in current directory into rmlint -- both PNGs and non-PNGs. If I pipe the selected files to ls, I get the same thing -- PNGs and non-PNGs. When I use exec find . -type f -iname '.png' -exec echo {} ; This works to echo only PNGs, filtering out non-PNGs. But if I pipe the results of exec, I get the same problem -- both PNGs and non-PNGs. find . -type f -iname '*.png' -exec echo {} ; | ls This is hard to believe, but that's what happened. Anybody have suggestions? I am deduplicating millions of files on a 14TB drive. Using MacOS Monterey on a 2015 iMac. Thanks in advance PS I just realized by ubuntu is doing the same thing -- failing to filter by given criteria

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here