Last active
October 6, 2018 17:29
-
-
Save ThinGuy/63b804b6532e099c4454f1a5fe786b1a to your computer and use it in GitHub Desktop.
run showrgb and show the name in the appropriate RGB color
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
#Updated to print full names when they include spaces and to display in columns | |
showrgb| \ | |
awk '{printf "%s", "\"\\e[1;38;2;"$1";"$2";"$3"m"; for(i=4;i<=NF;i++){printf "%s ", $i};printf "\\e[0m\"\n"}'| \ | |
xargs -L1 echo -e| \ | |
column |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment