Date: Tue, 19 Oct 2010 15:38:55 +0200 From: Matthias Apitz <guru@unixarea.de> To: Jerry McAllister <jerrymc@msu.edu> Cc: freebsd-questions@freebsd.org Subject: Re: filter a binary file and reduce 0x150a to 0x15 Message-ID: <20101019133855.GA4038@current.Sisis.de> In-Reply-To: <20101019132434.GB79716@gizmo.acns.msu.edu> References: <20101019130845.GA3773@current.Sisis.de> <20101019132434.GB79716@gizmo.acns.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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@unixarea.de> - w http://www.unixarea.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101019133855.GA4038>