Thanks a lot Christopher.
That's done the biz
--
Sylvanus A. Currie
WMP Technical: Data Migration
Barnwood
Email * sylvanus.currie@british-energy.com
<<...OLE_Obj...>>
British Energy Generation Ltd., Barnett Way, Barnwood, Gloucestershire, GL4
3RS
Internal * Phone 777-2423 * Fax 777-3231
External * Phone 01452-652423 * Fax 01452-653231
Mobile * Phone 077-5253-4452
-----Original Message-----
From: Christopher Mahmood [mailto:ckm@suse.com]
Sent: Friday, 21 March 2003 03.21
To: suse-linux-e@suse.com
Cc: sylvanus.currie@british-energy.com
Subject: Re: [SLE] OT - how do I use "dd" on all
files within a directory?
* Sylvanus A. Currie (suse-list@syrene.fsnet.co.uk) [030320
16:52]:
> However, I need to be able to do this for all files in a
directory.
> I've tried using "find -exec" but the "if=" and "of=" will
not allow me to use
> "{}".
ls -1 | while read f; do
echo "Copying $f"
dd if=$f of=device dd_options
done
--
-ckm
|* This message has been sent from the British Energy Group.
|*
|* British Energy plc
|*
|* Registered Office:-
|* 3 Redwood Crescent,
|* Peel Park
|* East Kilbride
|* G74 5PR
|* United Kingdom
|*
|* Registered in Scotland (Number 162273).
|*
|* This email message and any attachments are confidential
|* and are intended for the use of the addressee only. If you
|* are not the addressee you should not copy or use them for
|* any purpose, nor disclose their contents to anyone else.
|* If you believe you have received this email by mistake please
|* notify us immediately by telephoning +44 (0)1452 653113.