oflag option in GNU dd - equivalent in FreeBSD dd ?

Bahman M. b.movaqar at adempiere.org
Tue Oct 23 18:04:46 PDT 2007


On 2007-10-23 RW wrote:
> On Tue, 23 Oct 2007 16:42:46 +0330
> "Bahman M." <b.movaqar at 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


More information about the freebsd-questions mailing list