Skip to content

Instantly share code, notes, and snippets.

@suganoo
Last active September 5, 2017 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suganoo/f3d32940ce4c5edeebea4f47a98ddf24 to your computer and use it in GitHub Desktop.
Save suganoo/f3d32940ce4c5edeebea4f47a98ddf24 to your computer and use it in GitHub Desktop.
echoの出力で色づけする方法
echo -e "\e[30m黒色"
echo -e "\e[31m赤色"
echo -e "\e[32m緑色"
echo -e "\e[33m黄色"
echo -e "\e[34m青色"
echo -e "\e[35m赤紫色(マゼンタ)"
echo -e "\e[36m水色(シアン)"
echo -e "\e[37m白色"
@suganoo
Copy link
Author

suganoo commented Sep 5, 2017

最後に echo -e "\e[37m白色" すれば元に戻る

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment