Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!uwm.edu!marque!introl!ferret!stv From: stv@ferret.UUCP (Steve Manning) Newsgroups: comp.unix.questions Subject: Re: Directories That Grow Summary: WHOA!!! Message-ID: <4@ferret.UUCP> Date: 14 Apr 90 13:00:45 GMT References: <1990Apr10.002953.1233@mccc.uucp> <795@uncle.UUCP> Reply-To: stv@ferret.UUCP (Super user) Organization: Manning Disorganization, (un)Ltd. - Milwaukee, WI Lines: 30 In article <795@uncle.UUCP> donlash@uncle.UUCP (Donald Lashomb) writes: >In article <1990Apr10.002953.1233@mccc.uucp> pjh@mccc.uucp (Pete Holsberg) writes: >>In my news directory structure, certain very active directories appear >>to be growing without bound. For example, $NEWS/in.coming is very large >>but at this point contain about 4 actual files. >> >>How can I "reset" these directories so that "leading" entries with inode >>0 are removed? > >try - > mv $NEWS/in.coming $NEWS/in.coming-old > mkdir $NEWS/in.coming > find $NEWS/in.coming-old -print | cpio -pdlm $NEWS/in.coming This isn't quite right. The "find" command line should be replaced by: cd $NEWS/in.coming-old find . -print | cpio -pdlm $NEWS/in.coming Otherwise the entire $NEWS/in.coming-old heirarchy will be recreated under $NEWS/in.coming, so that you end up with paths of: $NEWS/in.coming$NEWS/in.coming-old/somefile rather than grafting what is _under_ $NEWS/in.coming-old across to $NEWS/in.coming. At least, that's how it works on the versions that I use. Is there another way to accomplish this? -----