I need to store a hash in a bash variable outputted from xxhsum.
I seem to get a lot of trailing spaces and sometimes will see the loading text in the variable/printout.
Can you add a option to output nothing while its calculating and ONLY output the final result?
Yep, that's a good point.
The "Loading ..." message is printed into stderr
, while the result of xxhsum
is sent to stdout
.
In most cases, user processes capture stdout
, ignoring stderr
, so there is no mix up.
But in your case, it seems there is.
Command -q
should work properly with version in dev
branch now.
It was already working partially (removing the "Loading x" message, but leaving a few trailing spaces). It's also better documented now.
The feature is now available in latest release v0.7.2
Magnificent! Thanks for the update cyan !