filter a binary file and reduce 0x150a to 0x15
Matthias Apitz
guru at unixarea.de
Tue Oct 19 13:38:56 UTC 2010
El día Tuesday, October 19, 2010 a las 09:24:34AM -0400, Jerry McAllister escribió:
> On Tue, Oct 19, 2010 at 03:08:45PM +0200, Matthias Apitz wrote:
>
> >
> > Hello,
> >
> > Before I programm it in C (or whatever), is there any normal shell tool
> > to filter a (large) binary file and change any occurance of 0x150a to
> > 0x15 (i.e. delete \n but only if it follows a char 0x15)?
>
> Can you manage it with tr(1) ?
Not as I read its man page; maybe you could give a concrete example?
Thanks
matthias
--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/
More information about the freebsd-questions
mailing list