filter a binary file and reduce 0x150a to 0x15

Jerry McAllister jerrymc at msu.edu
Tue Oct 19 13:58:22 UTC 2010


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)  ?

////jerry


> 
> 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/
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list