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>  testfileHow to suppress the filename output? I would like to obtain just<hash_code>
Suppress filename from output of sha512sum
shell script;text processing;files;hashsum;checksum
There isn't a way to suppress that, but since the SHA is always a single word without spaces you can do:sha512sum testfile | cut -d   -f 1 or e.g.< testfile sha512sum | sed 's/  -//'