[COFF] Shell script advice: using 'dd' to write multiple media
steve jenkin
sjenkin at canb.auug.org.au
Tue Jun 27 09:44:04 AEST 2023
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 at 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 at canb.auug.org.au http://members.tip.net.au/~sjenkin
More information about the COFF
mailing list