Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!linus!philabs!ttidca!sa From: sa@ttidca.TTI.COM (Steve Alter) Newsgroups: comp.unix.wizards Subject: Re: stupidity in directory management? Message-ID: <1091@ttidca.TTI.COM> Date: Tue, 11-Aug-87 12:42:54 EDT Article-I.D.: ttidca.1091 Posted: Tue Aug 11 12:42:54 1987 Date-Received: Sat, 15-Aug-87 08:18:19 EDT References: <603@nonvon.UUCP> <23047@sun.uucp> <1826@vax135.UUCP> <851@mcgill-vision.UUCP> Distribution: na Organization: Citicorp/TTI, Santa Monica Lines: 18 Following is a quick list of some of the recently posted methods for shrinking a large and mostly empty directory: > 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! What is needed is a general "cpmod" program which would copy modes and/or ownerships and/or times from one file (or directory) to another. If this already exists, could someone let me know which newsgroup it was in? (I think I'll cross-post to comp.sources.wanted) -- Steve Alter ...!{csun,trwrb,psivax}!ttidca!alter or alter@tti.com Citicorp/TTI, Santa Monica CA (213) 452-9191 x2541