Hi James, Meanwhile I've managed to solve my problem using a batch file, but thanks anyway. Best regards Carlos
-----Original Message----- From: ja...@youngman.org [mailto:ja...@youngman.org] On Behalf Of James Youngman Sent: quinta-feira, 10 de Setembro de 2015 23:33 To: Carlos Lopes Cc: bug-findutils@gnu.org Subject: Re: Help needed 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.