GNU bug report logs - #26002
[patch] md5sum --digest-only

Previous Next

Package: coreutils;

Reported by: Michael Vogt <mvo <at> ubuntu.com>

Date: Mon, 6 Mar 2017 16:20:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Vogt <mvo <at> ubuntu.com>
To: bug-coreutils <at> gnu.org
Subject: [patch] md5sum --digest-only
Date: Mon, 6 Mar 2017 08:55:59 +0100
[Message part 1 (text/plain, inline)]
Hi,

this is a bit of a RFC (anlong with a patch). I would like to have an
option in md5sum (and friends) that displays only the digest without
the filename. The use-case is mostly package maintainer scripts. They
often need the md5sum to e.g. check if a conffile has changed and use
patterns like:

  `md5sum /etc/papersize 2> /dev/null | awk '{print $1}'`
  `md5sum /etc/lsb-release | cut -d" " -f1`
  $(md5sum /etc/networks | sed -e 's/ .*//')

Having a --digest-only option in md5sum would make this a bit more
uniform.

Attached is a small patch, if the suggestion gets accepted I'm happy
to flesh it out more and write the man-page entry and tests.

Cheers,
 Michael
[coreutils-md5sum-digest-only.diff (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 6 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.