-1

when i use

echo -n "$str" |sha224sum

it gets me the checksum ends with "-"

how to get the checksum without it ?

Thanks

RavinderSingh13
  • 130,504
  • 14
  • 57
  • 93
  • Does this answer your question? [Only get hash value using md5sum (without filename)](https://stackoverflow.com/questions/3679296/only-get-hash-value-using-md5sum-without-filename) – Benjamin W. Sep 03 '20 at 18:07

1 Answers1

1

Cut the first field:

$ echo -n "$str" | sha224sum  | cut -d' ' -f1
23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7
Arkadiusz Drabczyk
  • 11,227
  • 2
  • 25
  • 38