#!/bin/sh # compress multiple consecutive newlines on stdin. tr -s '\n'