[Tutor] How to list/process files with identical character strings

Alex Kleider akleider at sonic.net
Tue Jun 24 20:58:37 CEST 2014


On 2014-06-24 08:34, mark murphy wrote:
> Hello Python Tutor Community,

> The actual processing part should be easy enough for me to figure out.  
> The
> part about finding the split files (each pair of files with the same 
> first
> 8 characters) and setting those up to be processed is way beyond me.  
> I've
> done several searches for examples and have not been able to find what 
> I am
> looking for.
Since your file system probably already keeps them ordered, each pair 
will be next to each other.
It would seem a simple matter to compare each file name to the one after 
it and if they match, process the two together.



More information about the Tutor mailing list