Answer the question
In order to leave comments, you need to log in
How to keep the color when cutting?
simple example:
printf "111;\e[32m222\e[0m;333\n111;\e[32m1234567890abcdefj\e[0m;333\n" | column --table --separator ';' --table-columns 'A,B,C'
A B C
111 222 333
111 1234567890abcdefj 333
printf "111;\e[32m222\e[0m;333\n111;\e[32m1234567890abcdefj\e[0m;333\n" | column --table --separator ';' --table-columns 'A,B,C' --table-truncate 'B' --output-width 20
A B C
111 222 333
111 �[32m12345 333
$ column -V
column из util-linux 2.37.2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question