Created
January 10, 2014 12:49
-
-
Save coderofsalvation/8351389 to your computer and use it in GitHub Desktop.
highlights keywords in bashcode script
This file contains hidden or 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
| # highlights keywords in bashcode script | |
| # usage: echo "foo normal bar" | highlight "foo|bar" | |
| highlight(){ | |
| cat - | grep -E --color "$1" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment