Post Closed as "duplicate" by Thomas Dickey, Anthon, don_crissti, Jeff Schaller, cuonglm of
2 add code tag
source | link

I am trying to clean all color control characters from log file. I am able to clean all other control characters except ^[(B^[(B . Please help me to clean this control character also.

I am using these combination to clean control characters.

cat $LOGFILE | sed -e 's/\x1b[[0-9;]*m//g' > $LOGDIR/Temp.txt

Thanks Amit

cat $LOGFILE | sed -e 's/\x1b\[[0-9;]*m//g' > $LOGDIR/Temp.txt

I am trying to clean all color control characters from log file. I am able to clean all other control characters except ^[(B . Please help me to clean this control character also.

I am using these combination to clean control characters.

cat $LOGFILE | sed -e 's/\x1b[[0-9;]*m//g' > $LOGDIR/Temp.txt

Thanks Amit

I am trying to clean all color control characters from log file. I am able to clean all other control characters except ^[(B . Please help me to clean this control character also.

I am using these combination to clean control characters.

cat $LOGFILE | sed -e 's/\x1b\[[0-9;]*m//g' > $LOGDIR/Temp.txt
1
source | link

Unable to clean ^[(B control characters from log file

I am trying to clean all color control characters from log file. I am able to clean all other control characters except ^[(B . Please help me to clean this control character also.

I am using these combination to clean control characters.

cat $LOGFILE | sed -e 's/\x1b[[0-9;]*m//g' > $LOGDIR/Temp.txt

Thanks Amit