Dave,
I’ve tried doing the ‘dd’ in a for or while loop many ways, many times.
Perhaps you could write & yesy a little demo script for me.
Say, “ls -1 | for (); do dd bs=10b; done”
cheers
steve
On 27 Jun 2023, at 09:21, Dave Horsfall
<dave(a)horsfall.org> wrote:
Sounds like you want to put "dd" into a loop, driven by the block size and
the media size, then using the "iseek" option on the input file to burrow
through it.
I would use "expr" for the arithmetic because I've never bothered to
learn the Bash syntax :-)
Or have I missed something?
-- Dave
--
Steve Jenkin, IT Systems and Design
0412 786 915 (+61 412 786 915)
PO Box 38, Kippax ACT 2615, AUSTRALIA
mailto:sjenkin@canb.auug.org.au
http://members.tip.net.au/~sjenkin