in reply to Re: Duplicates in Directories
in thread Duplicates in Directories

Auto-logged-out again.   Oh well.   Just one more thing:   remember to do this once more when you reach the end of the file, because that is of course what marks the end of the final group of names.

Replies are listed 'Best First'.
Re^3: Duplicates in Directories
by Anonymous Monk on Oct 09, 2017 at 14:28 UTC

    Oh yeah, and one more thing:   this strategy assumes a case-sensitive file system or that the case of the file-names does not actually vary.   Or that you have the easy means to obtain a case-insensitive sorted filename list.   But the essential algorithm remains the same.   The filesystem’s doing all the hard work for you.

      Maybe you could show some actual code solving your assumptions in Perl?

      That way, you don't need to hope that the users or filesystems behave in the way you describe (because neither does).