I have a directory with roughly 100000 files in it, and I want to perform some function on all files beginning with a specified string, which may match tens of thousands of
Use find with a wildcard:
find
find . -name 'mystring*'