Format each line of shell error output.