On Fri, Oct 26, 2007 at 03:45:39PM +0200, Pieter Verberne wrote:
does OpenBSD have a program/script to remove control characters (escape
sequence) from text files?
Try col -b
--
Brett Lymn
Warning:
The information contained in this email and any attached files is
confidential to BAE
Hi,
does OpenBSD have a program/script to remove control characters (escape
sequence) from text files?
Pieter
Pieter,
To remove the ^M characters at the end of all lines in vi, use:
:%s/^V^M//g
The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this,
it will look like this:
:%s/^M//g
--
Calomel @ http://calomel.org
Open Source Research and Reference
On Fri, Oct 26, 2007 at
On Fri, Oct 26, 2007 at 03:45:39PM +0200, Pieter Verberne wrote:
Hi,
Hi Pieter.
does OpenBSD have a program/script to remove control characters (escape
sequence) from text files?
Do you mean something like the ^M (\r) character ?
I recommend using tr, e.g.:
tr -d '\r' name_of_inputfile
On 10/26/07, Pieter Verberne [EMAIL PROTECTED] wrote:
Hi,
does OpenBSD have a program/script to remove control characters (escape
sequence) from text files?
Not sure if this is what you are wanting.
tr '\r' '\n' inputfile outputfile
more info @ http://en.wikipedia.org/wiki/Newline
Hi Peter,
does OpenBSD have a program/script to remove control characters (escape
sequence) from text files?
Sure,
sed 's/[^A-Z ]//g'
No kidding: Usually you want to specify which characters to allow,
not which characters to remove (default deny policy).
In case you want to allow more than
6 matches
Mail list logo