Archive for 11月 2022

shell脚本输出颜色

写shell脚本时,用echo命令输出内容,这我们都知道。但是怎么给输出内容上点色呢?

其实很简单,利用-e参数,即启用反斜杠转义的解释。

Continue reading ‘shell脚本输出颜色’ »