Answer the question
In order to leave comments, you need to log in
How to save the colored output of a command to a file?
Greetings!
It is required to save the output of the yandex-weather-cli command to a file, so that later, when outputting from the file, the output will be colored. Now the plain text is saved.
result
Answer the question
In order to leave comments, you need to log in
Can use script
script -qec yandex-weather-cli weather.txt
# или если нужен вывод только в файл
script -qec yandex-weather-cli weather.txt > /dev/null
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question