bash – md5sum – Remove Trailing Newlines
Join the DZone community and get the full member experience.
Join For FreeThe following code will remove trailing line breaks that come from the md5sum command:
echo -n "test" | md5sum | tr -d '\n'
Bash (Unix shell)
Command (computing)
Published at DZone with permission of Gary Sieling, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Docker Compose vs. Kubernetes: The Top 4 Main Differences
-
Breaking Down the Monolith
-
What Is JHipster?
-
Superior Stream Processing: Apache Flink's Impact on Data Lakehouse Architecture
Comments