[COFF] Shell script advice: using 'dd' to write multiple media

Dave Horsfall dave at horsfall.org
Wed Jun 28 07:01:18 AEST 2023


On Tue, 27 Jun 2023, steve jenkin wrote:

> 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”

The problem is the pipe, of course; no Unix I know will allow a seek on a 
pipe (?), so it will have to be buffered somehow.

I'm a bit tied up right now, so I'll take a look later.  In the meantime 
you seem to have lots of responses...

-- Dave


More information about the COFF mailing list