Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2007 16:42:46 +0330
From:      "Bahman M." <b.movaqar@adempiere.org>
To:        Juri Mianovich <juri_mian@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: oflag option in GNU dd - equivalent in FreeBSD dd ?
Message-ID:  <20071023164246.13be9d63@attila>
In-Reply-To: <398795.23954.qm@web45616.mail.sp1.yahoo.com>
References:  <398795.23954.qm@web45616.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?).

Bahman



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