[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
md5sum outputs '-' when using stdin
From: |
coreutils |
Subject: |
md5sum outputs '-' when using stdin |
Date: |
Fri, 23 Aug 2019 10:41:01 +0100 |
User-agent: |
Cyrus-JMAP/3.1.6-916-g49fca03-fmstable-20190821v7 |
eg:
$ echo 'hello world' | md5sum
6f5902ac237024bdd0c176cb93063dc4 -
What's use is the '-'?
Obviously it indicates the file content it taken from the standard input, but
is that of any actual use?
I'm finding that I always end up having to strip it off so I can isolate the
actual hash. It's a minor irritation, but I did wonder if it actually serves
any purpose.
$ md5sum --version
md5sum (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper, Scott Miller and David Madore.
dwater
- md5sum outputs '-' when using stdin,
coreutils <=