Sample Header Ad - 728x90

Print SHA sums without "-" at the end?

23 votes
6 answers
19430 views
Is it possible to have SHA sums print without the - appended to the end? $ echo test | sha1sum 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 - <--- this "-" dash/hyphen I know we can use awk and other command line tools, but **can it be done without using another tool**? $ echo test | sha1sum | awk '{print $1}' 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83
Asked by user325067 (233 rep)
Dec 10, 2018, 01:08 AM
Last activity: Apr 27, 2021, 10:37 PM