Re: [PATCH 2/4] hardlink: add --list-duplicates and --zero
Karel Zak <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <poldiwddvocjfuycz4itjwpv37ujpbnsei5xdsq75tczrofkbw@n2deqipztqae> |
On Mon, Oct 28, 2024 at 07:19:30PM GMT, наб wrote:
> --list-duplicates codifies what everyone keeps re-implementing with
> find -exec b2sum or src:perforate's finddup or whatever.
>
> hardlink already knows this, so make the data available thusly,
> in a format well-suited for pipeline processing
> (fixed-width key for uniq/cut/&c.,
> tab delimiter for cut &a.,
> -z for correct filename handling).
> ---
> misc-utils/hardlink.1.adoc | 6 ++++++
> misc-utils/hardlink.c | 21 ++++++++++++++++++++-
> 2 files changed, 26 insertions(+), 1 deletion(-)
The new option should also be added to the "bash-completion/hardlink"
file. However, I can fix this after merging locally.
Karel
--
Karel Zak <[email protected]>
http://karelzak.blogspot.com