Suppress filename from output of sha512sum
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/ -//'
sha512sum testfile | awk '{print $1}'