[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to remove escape sequences from a existing file



On Thu, Sep 23, 2004 at 12:53:26AM +0200, diego wrote:
> I have a log file with escape sequences like "ESC]00m" and the like. I
> know they are the codes to change the color and so in the original
> printing, but in automatic post processing its a real headache...
> 
> How can I automatically remove ANY escape sequence to convert it into a
> real plain text?
> 
> Thanx very much in advance!!
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Hi Diego,
I recall MAN pages with such things. This:
cat TEXTFILE | col -b
may help. 'man col' to see all the details.
-Kev

-- 

        (__)
        (oo)
  /------\/
 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...

Attachment: signature.asc
Description: Digital signature


Reply to: