Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!uwvax!uwmacc!hobbes!root From: root@hobbes.UUCP (John Plocher) Newsgroups: comp.unix.wizards Subject: Re: stupidity in directory management? Message-ID: <175@hobbes.UUCP> Date: Fri, 14-Aug-87 16:21:19 EDT Article-I.D.: hobbes.175 Posted: Fri Aug 14 16:21:19 1987 Date-Received: Sun, 16-Aug-87 07:39:49 EDT References: <603@nonvon.UUCP> <23047@sun.uucp> <1826@vax135.UUCP> <851@mcgill-vision.UUCP> <1091@ttidca.TTI.COM> Reply-To: root@hobbes.UUCP (John Plocher) Followup-To: comp.unix.wizards Distribution: na Organization: U of Wisconsin - Madison Spanish Department Lines: 18 Steve Alter writes the following in article <1091@ttidca.TTI.COM> ---- | > find jumbo -depth -print | cpio -pdlm teensy | > mv jumbo/* teensy ; mv jumbo/.??* teensy | > ls -f -1 jumbo | sed -e '1,2d' | sed -e 's;.*;mv jumbo/& teensy;' | sh | (Note that each of the above three must be followed by this:) | > rm -r jumbo ; mv teensy jumbo | Now the problem with all of these is that the new directory has no | guarantee that its mode/ownerships will match the old one! +---- I usually use something like the following: find jumbo -depth -print | cpio -o > /tmp/hold_this rm -fr jumbo cpio -ivduma < /tmp/hold_this -- John Plocher uwvax!geowhiz!uwspan!plocher plocher%uwspan.UUCP@uwvax.CS.WISC.EDU