Xxhash: Switch to remove "loading" message in xxhsum

Created on 16 Jul 2018  路  2Comments  路  Source: Cyan4973/xxHash

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.

question

Most helpful comment

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

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

boazsegev picture boazsegev  路  6Comments

vinniefalco picture vinniefalco  路  4Comments

easyaspi314 picture easyaspi314  路  7Comments

xinglin picture xinglin  路  6Comments

jtoivainen picture jtoivainen  路  4Comments