From owner-freebsd-questions@FreeBSD.ORG Tue Oct 19 13:58:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 072491065693 for ; Tue, 19 Oct 2010 13:58:22 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id BB9F98FC17 for ; Tue, 19 Oct 2010 13:58:21 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id o9JDOYu2079826; Tue, 19 Oct 2010 09:24:34 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o9JDOYDY079825; Tue, 19 Oct 2010 09:24:34 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 19 Oct 2010 09:24:34 -0400 From: Jerry McAllister To: Matthias Apitz Message-ID: <20101019132434.GB79716@gizmo.acns.msu.edu> References: <20101019130845.GA3773@current.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101019130845.GA3773@current.Sisis.de> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: filter a binary file and reduce 0x150a to 0x15 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 13:58:22 -0000 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 - w http://www.unixarea.de/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"