|
From: | Chuck Swiger |
Subject: | Re: Removing VT220 control characters with GAWK |
Date: | Thu, 17 Apr 2008 10:56:44 -0700 |
On Apr 17, 2008, at 9:40 AM, Dylan VanHerpen wrote:
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?
Try using sed instead. Something like: sed 's/\033\[[0-9]*\;[0-9]*H/ /g' < capturefile ...might do. -- -Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |