Article 4VFE4 Script pipping to tee doesn't keep colors

Script pipping to tee doesn't keep colors

by
bmxakias
from LinuxQuestions.org on (#4VFE4)
Hello

I have a bash script and when i run it i can see some green or red lines as an output but when i try to create a log file by piping to tee:

Code:/update/update.sh 2>&1 | tee -a log.txti am losing the output colors :(

Any ideas how can i preserve colors?

Thank youlatest?d=yIl2AUoC8zA latest?i=OX4sl06q6Ik:tXBYYkWpiek:F7zBnMy latest?i=OX4sl06q6Ik:tXBYYkWpiek:V_sGLiP latest?d=qj6IDK7rITs latest?i=OX4sl06q6Ik:tXBYYkWpiek:gIN9vFwOX4sl06q6Ik
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments