> Hi. Can someone show me a bit of code that would split up a Macintosh > folder that has thousands of files in it, into lots of individual folders > that have only a 100 files each? In other words, one folder with 1000 > items would become 10 folders with 100 items each. You don't say on what basis you wish to make the split. A brute-force method would impose an arbitrary limit (e.g., 100) and create new folders (e.g., f01, f02, ...) as needed. You may have some second-order require- ments, however, that could complicate the problem. For instance, it might be appropriate to break the files up into ranges, based on the initial character. This isn't that much harder, but it could save you some pain after you make the split... Finally, how many "thousands" of files do you have? This could affect your decisions (e.g., whether to use f01 or f001 :-)... -r Rich Morin, Canta Forda Computer Laboratory | Prime Time Freeware - quality UNIX consulting, training, and writing | freeware at affordable prices P.O. Box 1488, Pacifica, CA, 94044, USA | www.ptf.com info@ptf.com rdm@cfcl.com +1 650-873-7841 | +1 408-433-9662 -0727 (Fax) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch