bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26002: [patch] md5sum --digest-only


From: Michael Vogt
Subject: bug#26002: [patch] md5sum --digest-only
Date: Mon, 6 Mar 2017 08:55:59 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

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

Attachment: coreutils-md5sum-digest-only.diff
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]