special characters in vi 304
Lars Tunkrans
lars at iclswe.icl.se
Thu Apr 18 07:52:50 AEST 1991
lyle at ssbot.af.mil (Lyle A. Steinhardt) writes:
>Hello all you vi gurus,
>I need to know how to get rid of "\304" character and replase them with a
>"-" character. I can't find the control sequence I need. This file was
>uploaded as an ascii file so I don't know how these special characters
>got into the file. Below is a sample of the file with the problem character
>present:
>596D4403
>596D4403
>596D5223
>596D4091
>596D4873
You got an 8-bit character with octal value 304 in your file.
>Unfortunately, it looks like the mail processor converted this character
>to a "D" character...amazing that...anyway I'd appreciate any help you can
>provide.
What did you think would happen when the mailer strips off the eight-bit ?
You get a 7-bit ASCII character.
To solve your problem,
how about: cat filename | tr "\304" "\055" > newfilename
Lars.
--
Lars Tunkrans Phone +46 (0)76096368. | I C L
DRS Systems Support. |
UUCP: uunet!mcsun!sunic!iclswe!lars | The leading UNIX System V Release 4.0
DOMAIN Address : lars at iclswe.icl.se | integrator.
More information about the Comp.unix.questions
mailing list