From owner-freebsd-questions@FreeBSD.ORG Wed Oct 24 01:04:46 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 2527116A417 for ; Wed, 24 Oct 2007 01:04:46 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from kedah.mschosting.com (kedah.mschosting.com [202.75.42.90]) by mx1.freebsd.org (Postfix) with ESMTP id E257213C48A for ; Wed, 24 Oct 2007 01:04:45 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from [87.107.63.161] (port=59946 helo=attila) by kedah.mschosting.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1IkNcu-0001la-R6; Wed, 24 Oct 2007 01:33:14 +0800 Date: Tue, 23 Oct 2007 21:02:31 +0330 From: "Bahman M." To: RW Message-ID: <20071023210231.6eae3dd4@attila> In-Reply-To: <20071023172343.56ea5a9b@gumby.homeunix.com.> References: <398795.23954.qm@web45616.mail.sp1.yahoo.com> <20071023164246.13be9d63@attila> <20071023172343.56ea5a9b@gumby.homeunix.com.> 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 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kedah.mschosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - adempiere.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org 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: Wed, 24 Oct 2007 01:04:46 -0000 On 2007-10-23 RW wrote: > 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 Not at all. But as OP is trying to avoid 'cat /blah >> /bleh' I assumed that he also wouldn't want the shell to append the data to /bleh; I may be wrong though. Bahman