Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Created February 5, 2010 09:38
Show Gist options
  • Save oberhamsi/295679 to your computer and use it in GitHub Desktop.
Save oberhamsi/295679 to your computer and use it in GitHub Desktop.
RED=`echo -en '\e[31m'`
YELLOW=`echo -en '\e[93m'`
RESET=`echo -en '\e[00m'`
tail -f file | sed -E "s/([0-9]+)/$RED\1$RESET/g;s/(\"[^\"]*\")/$YELLOW\1$RESET/g"
http://stackoverflow.com/questions/510202/apply-formatting-to-unix-shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment