sed problems with hexadecimal substitutions

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Wed Jan 17 22:58:18 UTC 2007


On Mon, Jan 15, 2007 at 06:48:24PM -0800, Andre wrote:
> I'm trying to use Busybox sed for quick and dirty UTF16 to ascii
> conversion:

You can use tr for that:
$ xxd tt
0000000: 6800 6500 6c00 6c00 6f00 0a62 0079 0065  h.e.l.l.o..b.y.e
0000010: 000a                                     ..
$ ./busybox tr -d '\000' < tt | xxd
0000000: 6865 6c6c 6f0a 6279 650a                 hello.bye.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070117/b79aaa74/attachment-0002.pgp 


More information about the busybox mailing list