From: dan@dna.neusc.bcm.tmc.edu
Subject: Re: Getting dd to pad the *last* output block
Date: 10 Aug 1994 00:53:28 GMT [thread overview]
Message-ID: <3298e8$bt0@gazette.bcm.tmc.edu> (raw)
In-Reply-To: Cu9x20.33G@adasoft.ch
In <Cu9x20.33G@adasoft.ch>, jw@adasoft.ch (Jamie Watson) writes:
)Does anyone know how to get the Ultrix "dd" to pad the last output block
)to whatever the specified block size is, when reading from stdin? I know
)this sounds like a strange problem, and probably sounds more like user
)error than anything else, but I have been fighting with this for a very
)long time (several years, in fact), and I still can't get it to do what
)I want. The kind of command line I am talking about is this:
)
) compress < xc-1.tar | dd obs=10k conv=sync of=/dev/nrmt1l
I would have thought this would work, but I guess there is a comflict
between obs= and conv=sync. If you made obs=2k or something, perhaps
compress < xc-1.tar | dd obs=2k | dd bs=2k conv=sync of=/dev/nrmt1l
would work.
However, with the amount of time you have aprrently spent on this, you
could just write the half page C program to do the job.
Cheers,
Dan Ts'o 713-798-3331
Div. Neuroscience FAX: 713-798-3897
Baylor College of Medicine
1 Baylor Plaza S553 dan@dna.neusc.bcm.tmc.edu
Houston, TX 77030 tso@cephalo.neusc.bcm.tmc.edu
next prev parent reply other threads:[~1994-08-10 0:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-09 15:15 Getting dd to pad the *last* output block Jamie Watson
1994-08-10 0:53 ` dan [this message]
1994-08-10 13:32 ` Andreas Karrer
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox