[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Removing VT220 control characters with GAWK
From: |
Dylan VanHerpen |
Subject: |
Removing VT220 control characters with GAWK |
Date: |
Thu, 17 Apr 2008 10:40:51 -0600 |
I've been trying to use GAWK to remove VT220 control characters from an
Expect capture file. The pattern I'm trying to remove is as follows:
ESC[xx;xxH
Where 'xx;xx' represents the row/column. What I'd like to do is
something like this:
{ FS = "\033\[*H"; OFS = "," }
So far, I've had no luck removing the escape strings, or even just the
escape code (\033) itself. Am I going the wrong way about this?