Gary Sieling

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'

Exit mobile version