Hi,
There is a special character '\274' in my text file, how can I find and replace it in vi editor or use sed?
In vi editor, this character is shown as '\274', a single character. When I use 'hd' to read the file, '\274' is 0xbc. But when I use 'cat' to read this file, '\274' shows as an equal sign ('='). This character is generated by "hold alt- key, and type 171". On screen, it shows as ½. Then save it into oracle, ...
/home/ops/oper/DBL/dly> hd *.out |grep bc
00000450 44 20 31 bc 20 41 4e 44 20 32 bc 2e 01 32 30 30 D 1. AND 2...200
00000a40 01 54 41 4b 45 20 32 bc 01 32 30 30 32 31 30 32 .TAKE 2..2002102
00000bc0 30 01 01 30 01 01 01 30 01 01 01 01 01 30 01 01 0..0...0.....0..
00001bc0 34 35 32 38 32 01 30 01 30 01 01 4e 01 30 01 30 45282.0.0..N.0.0
Thanks,
Michael
There is a special character '\274' in my text file, how can I find and replace it in vi editor or use sed?
In vi editor, this character is shown as '\274', a single character. When I use 'hd' to read the file, '\274' is 0xbc. But when I use 'cat' to read this file, '\274' shows as an equal sign ('='). This character is generated by "hold alt- key, and type 171". On screen, it shows as ½. Then save it into oracle, ...
/home/ops/oper/DBL/dly> hd *.out |grep bc
00000450 44 20 31 bc 20 41 4e 44 20 32 bc 2e 01 32 30 30 D 1. AND 2...200
00000a40 01 54 41 4b 45 20 32 bc 01 32 30 30 32 31 30 32 .TAKE 2..2002102
00000bc0 30 01 01 30 01 01 01 30 01 01 01 01 01 30 01 01 0..0...0.....0..
00001bc0 34 35 32 38 32 01 30 01 30 01 01 4e 01 30 01 30 45282.0.0..N.0.0
Thanks,
Michael