logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: b26b52d4f7479f0485d52dcc1ed2565d8dc397c9
parent 0aa87acbacda979c1f7ac7a41a6d4c0a8b7f4d94
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 21 Oct 2024 14:34:35 +0200

cmd/sha*sum.1: Add grep example to ignoring missing files

Diffstat:

Mcmd/sha1sum.15+++++
Mcmd/sha256sum.15+++++
Mcmd/sha512sum.15+++++
3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/cmd/sha1sum.1 b/cmd/sha1sum.1 @@ -28,6 +28,11 @@ and finally a filename. .El .Sh EXIT STATUS .Ex -std +.Sh EXAMPLES +Check tarballs in current directory against the +.Pa sha1sums.txt +digest and ignore the rest of it: +.Dl printf %s\en *.tar* | grep -f - sha1sums.txt | sha1sum -c - .Sh SEE ALSO .Xr sha256sum 1 .Sh STANDARDS diff --git a/cmd/sha256sum.1 b/cmd/sha256sum.1 @@ -28,6 +28,11 @@ and finally a filename. .El .Sh EXIT STATUS .Ex -std +.Sh EXAMPLES +Check tarballs in current directory against the +.Pa sha256sums.txt +digest and ignore the rest of it: +.Dl printf %s\en *.tar* | grep -f - sha256sums.txt | sha256sum -c - .Sh STANDARDS SHA256 is standardized both in FIPS 180-4 and RFC 6234. .Sh AUTHORS diff --git a/cmd/sha512sum.1 b/cmd/sha512sum.1 @@ -28,6 +28,11 @@ and finally a filename. .El .Sh EXIT STATUS .Ex -std +.Sh EXAMPLES +Check tarballs in current directory against the +.Pa sha512sums.txt +digest and ignore the rest of it: +.Dl printf %s\en *.tar* | grep -f - sha512sums.txt | sha512sum -c - .Sh STANDARDS SHA512 is standardized both in FIPS 180-4 and RFC 6234. .Sh AUTHORS