On Wed, 20 Feb 2013 10:37:06 +0000 Mark Rogers mark@quarella.co.uk allegedly wrote:
On 20 February 2013 10:12, mick mbm@rlogin.net wrote:
Again, yes, but that does not demonstrate the file name substitution in the use of the "{}" string which was the object of Michael's (and Mark's) suggestion. It is that usage with touch -r that I was asking about.
Something like: cd /old-disk/micks-stuff find . -exec echo touch "/new-place/{}" --reference="{}" --no-dereference --no-create ;
(untested).
Ahah! Thank you Mark. Almost, but not quite, perfect. Once I could see what you were doing it was easy enough to correct to:
cd /old-disk/micks-stuff
find . -exec touch /new-disk/micks-stuff/{} --reference={} --no-dereference --no-create ;
(i.e. take out the additional escaped quotes)
Many thanks again.
Mick
---------------------------------------------------------------------
blog: baldric.net gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312
---------------------------------------------------------------------