Over a million developers have joined DZone.

bash – md5sum – Remove Trailing Newlines

DZone's Guide to

bash – md5sum – Remove Trailing Newlines

· DevOps Zone ·
Free Resource

With the influx of DevOps-related products and services on the market, today’s application delivery toolchain has become complex and fragmented. Watch Avoiding the DevOps Tax to learn best practices for integration and automation to realize a faster DevOps lifecycle.

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

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

Automation and collaboration are critical to increasing operational efficiency, accelerating delivery, and innovating products. Watch Overcoming Barriers to DevOps Automation to gain insight on ways you can automate your processes with CI/CD and overcome common obstacles to developing a faster DevOps lifecycle.


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}