shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Mudar bytes exatos em binario


From: Reinaldo de Carvalho
Subject: Re: [shell-script] Mudar bytes exatos em binario
Date: Sun, 18 May 2008 16:13:51 +0000

> Por exemplo:
>
> $ echo -en "\x01\x02\x03\x04\x05\x06\x07\x08" > arq.bin
>
> Agora gostaria de mudar os bytes 0x04 0x05 e 0x06 por qualquer outra
> coisa (\x00\x00\x00 por exemplo).

sed -i 's/\x04/\x00/' arq.bin

-- 
Reinaldo Carvalho
http://korreio.sf.net


reply via email to

[Prev in Thread] Current Thread [Next in Thread]