On Tue, Sep 8, 2015 at 12:18 PM, Carlos Lopes <carlos-t-lo...@sapo.pt> wrote: > Hi, > > > > I'm trying to use findutils to find files based on their name, but since > there are many patterns to search, I would like to know if it is possible to > pass a file with the patterns:
Roughly how many patterns? 20? 100_000_000? Is it a fixed set or does it change a lot? For 20 relatively static patterns, you can make a single regex. For 200 varying patterns you could use a shell loop to generate the command line. For 100_000_000 patterns you're better off generating a list of all the files and then combining the patterns into 50_000 or so combined regexes. IOW your optimal choice depends on, I think, details you didn't specify. Could you provide more detail? Thanks, James.