Last active
October 14, 2021 08:46
-
-
Save lmlsna/a1b445af8201d25ad7f87d812d620023 to your computer and use it in GitHub Desktop.
hilite - Bash script to colorize arguments found in passed stdin text
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
| #!/bin/bash | |
| # Hightlights arguments from piped in text | |
| cat - | grep --color=auto -E -i "^|$(echo "$*" | sed 's/ /|/g')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment