I need to parse the output of the xxhsum command in a bash script.
Currently, it displays a loading message and then overwrites that text with the hash. This gets in the way of my parsing.
I also wonder what the point of the "loading" message is? It seems extraneous, mh5sum etc do not have such a message.
loading notifications are written to stderr, while results are to stdout.
Discard stderr and you'll get what you want.
xxhsum FILES... 2>/dev/null
or
xxhsum FILES... | results-processing-cmd
xxhsum FILES... 2>/dev/null works for me - thank you!
Most helpful comment
loading notifications are written to stderr, while results are to stdout.
Discard stderr and you'll get what you want.
or