bash – md5sum – remove trailing newlines

The following code will remove trailing line breaks that come from the md5sum command:


echo -n "test" | md5sum | tr -d '\n'

Leave a Reply

Your email address will not be published. Required fields are marked *