Maybe it is a trivial question, but in the man
page I didn't find something useful. I am using Ubuntu and bash
.
The normal output for sha512sum testfile
is
<hash_code> testfile
How to suppress the filename output? I would like to obtain just
<hash_code>
sha512sum testfile | awk '{print $1}'
– cuonglm Feb 25 '16 at 13:48