From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 16:24:05 2007 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 287F416A419 for ; Tue, 23 Oct 2007 16:24:05 +0000 (UTC) (envelope-from fbsd06+PR=24fd5e89@mlists.homeunix.com) Received: from mxout-04.mxes.net (mxout-04.mxes.net [216.86.168.179]) by mx1.freebsd.org (Postfix) with ESMTP id 114A013C481 for ; Tue, 23 Oct 2007 16:24:05 +0000 (UTC) (envelope-from fbsd06+PR=24fd5e89@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 250E6D05B5 for ; Tue, 23 Oct 2007 12:23:45 -0400 (EDT) Date: Tue, 23 Oct 2007 17:23:43 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20071023172343.56ea5a9b@gumby.homeunix.com.> In-Reply-To: <20071023164246.13be9d63@attila> References: <398795.23954.qm@web45616.mail.sp1.yahoo.com> <20071023164246.13be9d63@attila> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: oflag option in GNU dd - equivalent in FreeBSD dd ? 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, 23 Oct 2007 16:24:05 -0000 On Tue, 23 Oct 2007 16:42:46 +0330 "Bahman M." wrote: > On 2007-10-22 Juri Mianovich wrote: > > I am used to using this command in Linux, using GNU > > dd: > > > > dd if=/blah of=/bleh oflag=append conv=notrunc > > > > The problem is, FreeBSD 'dd' does not understand the > > "oflag" argument. > > > > Is there some equivalent in the FreeBSD 'dd' syntax > > that I can use, or am I forced to install GNU utils ? > > > dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' ' > -` > > I don't know if any simpler way is possible (anyone?). > is it any different to dd if=/blah >> /bleh