The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Copy and rename files recursively (http://hintsforums.macworld.com/showthread.php?t=110944)

ganbustein 05-10-2010 06:51 PM

If you have more than 100 duplicates, the script will go into an infinite loop. That is, it'll try:

prefix.msg
prefix 01.msg
prefix 02.msg
...
prefix 98.msg
prefix 99.msg
prefix 00.msg
prefix 01.msg <== Oops! Already tried this one
prefix 02.msg <== Ditto.
...


You ignore Murphy at your peril.

sojourner 05-10-2010 09:05 PM

Thanks for pointing that out. From what I can tell, in any given folder, I don't have more than 99 dups. But I'll make a note of that in case I have to re-use this script for such a case.


All times are GMT -5. The time now is 05:24 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.