Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2007 21:02:31 +0330
From:      "Bahman M." <b.movaqar@adempiere.org>
To:        RW <fbsd06@mlists.homeunix.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: oflag option in GNU dd - equivalent in FreeBSD dd ?
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.>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-10-23 RW wrote:
> On Tue, 23 Oct 2007 16:42:46 +0330
> "Bahman M." <b.movaqar@adempiere.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071023210231.6eae3dd4>