#!/bin/sh

# Don't try to add coloring escape characters if they're not going to
# be understood.
if ! test -t 1 || test $# -eq 0; then
    cat
    return
fi

sed "s/\($1\)/\x1b[31m\\1\x1b[39m/g"
