From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24759 invoked from network); 26 Jun 2023 23:44:19 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2023 23:44:19 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 9B92A40151; Tue, 27 Jun 2023 09:44:17 +1000 (AEST) Received: from lists.tip.net.au (pasta.tip.net.au [IPv6:2401:fc00:0:129::2]) by minnie.tuhs.org (Postfix) with ESMTPS id 6ECBE40116 for ; Tue, 27 Jun 2023 09:44:07 +1000 (AEST) Received: from [192.168.1.5] (ppp118-208-161-109.cbr-trn-nor-bras39.tpg.internode.on.net [118.208.161.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.tip.net.au (Postfix) with ESMTPSA id 4QqkvT0Smpz9QvK; Tue, 27 Jun 2023 09:44:04 +1000 (AEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) From: steve jenkin In-Reply-To: Date: Tue, 27 Jun 2023 09:44:04 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Computer Old Farts Followers X-Mailer: Apple Mail (2.3445.104.21) Message-ID-Hash: 3DPOO2WYQIIY3AAWD74F4XS5QYG23FWA X-Message-ID-Hash: 3DPOO2WYQIIY3AAWD74F4XS5QYG23FWA X-MailFrom: sjenkin@canb.auug.org.au X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [COFF] Re: Shell script advice: using 'dd' to write multiple media List-Id: Computer Old Farts Forum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Dave, I=E2=80=99ve tried doing the =E2=80=98dd=E2=80=99 in a for or while loop = many ways, many times. Perhaps you could write & yesy a little demo script for me. Say, =E2=80=9Cls -1 | for (); do dd bs=3D10b; done=E2=80=9D cheers steve > On 27 Jun 2023, at 09:21, Dave Horsfall wrote: >=20 > Sounds like you want to put "dd" into a loop, driven by the block size = and=20 > the media size, then using the "iseek" option on the input file to = burrow=20 > through it. >=20 > I would use "expr" for the arithmetic because I've never bothered to > learn the Bash syntax :-) >=20 > Or have I missed something? >=20 > -- Dave -- Steve Jenkin, IT Systems and Design=20 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