For similiar problem (removing colors):
For shell:
cat something | perl -le 'while (<>) {chomp; s/[\000-\037]\[(\d|;)+m// +g; print ($_) };'
ANSI colors looks like :) ^[[number[;number]m - reset: ^[[m# sth; sth; { s/[\000-\037]\[(\d|;)+m//g; } # sth else;
In reply to Re: How do I remove control characters?
by kgsz
in thread How do I remove control characters?
by Grunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |