0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

シェルスクリプトのecho出力で文字に色をつける

Posted at

echoの出力で文字に色をつける場合は以下のような書き方をすることで実現できる。

echo -e "\033[0;32m緑色の文字\033[0;39m"

32の部分を変えることで別の色に変えることもできる。

数字
30
31
32
33 黄色
34
35 マゼンダ
36 シアン
37
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?