Created
May 14, 2012 21:41
-
-
Save todb-r7/2697436 to your computer and use it in GitHub Desktop.
All cats are grey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stick in your .bash_aliases to uncolor your Rails logs. Note that ^[ is really (Ctrl-V) + (ESC) | |
function all_cats_are_grey { | |
cat $1 | sed 's/^[\[[0-9;]*m//g' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment