[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: hash-sum - print only the checksum - quiet mode
From: |
wrotycz |
Subject: |
Re: Re: hash-sum - print only the checksum - quiet mode |
Date: |
Tue, 17 Dec 2024 21:09:27 +0100 |
User-agent: |
GWP-Draft |
<pre> "Using the --quiet option for this seems a little awkward.
Is it pun to awk? One reason we added the --raw option, was for this single
input case. It is not the same. I.e. please consider using something like
this example:" cksum --raw -a md5 | basenc --base16 What is a
difference between this and, say?: $ md5sum | awk '{print $1}' One
has to run external program anyway. Here [1] OP has problem with hash that
includes file name, even if that file name happens to be `-' . And not
forget about two spaces between hash and file name. And those two spaces can
equally well be ` *'. So, there is an application of that feature. Note
FreeBSD at least will output checksums without file name for all specified
files, though that would be an unusual use case. If you mean issuing it with
multiple files then I do not care how users use and misuse my programs. If
that is their choice, so be it. 1. lists.nongnu.org
https://lists.nongnu.org/archive/html/coreutils/2024-12/msg00009.html
</pre>
Re: hash-sum - print only the checksum - quiet mode, Rob Landley, 2024/12/18