Created
June 3, 2015 11:05
-
-
Save lennart/a30b7c30a947ec1c25c3 to your computer and use it in GitHub Desktop.
Bash Alias for converting rgb values to hex, Usage: rgb2hex 12 245 14
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
alias rgb2hex='printf "#%02x%02x%02x\n"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment