<blockquote>
<p>Wouldn't sed(1) do the trick?</p>
</blockquote>

<p>It would, but be carefully with the pipes, the exit code of the command, will be the exit code from the last command in the pipe :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/issues/1240#issuecomment-35426226'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODI4NjIxOSwiZGF0YSI6eyJpZCI6MjU5MDA5MTN9fQ==--24d59566d9193dd96d65d560a09aae65c2d67be6.gif' height='1' width='1'></p>