Created
April 1, 2016 05:36
-
-
Save n-johnson/ab8e5c5c9d75d976b0ad276e4b2296e3 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Takes a parameter PREFIX and then prepends it to all stdin passed through | |
PREFIX="$1" | |
awk -v p="$PREFIX" '{ print "\033[90m[" p "]\033[0m" , $0; fflush(); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment