#!/bin/bash
_DEF="\\x1b[0m"
_RED="\\x1b[31m"
_GRN="\\x1b[32m"
_ORG="\\x1b[33m"
_BLU="\\x1b[34m"
_MGT="\\x1b[35m"
_CYN="\\x1b[36m"
filename=$1
tempfile=$(mktemp)
cat "$filename" > "$tempfile"
# Colorize
sed -i 's/listen/'"${_RED}"'&'"${_DEF}"'/g' "$tempfile"
sed -i 's/return/'"${_GRN}"'&'"${_DEF}"'/g' "$tempfile"
cat "$tempfile"
rm "$tempfile"