Date: Thu, 20 Sep 2001 11:20:27 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Nino Matassa cc: djgpp AT delorie DOT com Subject: Re: Is it possible to search subdirectories from the command line.... In-Reply-To: <3BA9A9F9.67C8D529@iolfree.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 20 Sep 2001, Nino Matassa wrote: > > Please don't post in HTML. > Is it possible to search subdirectories from the command line such as...: > application *.cpp *.h > which will generate in **argv all my *.cpp & *.h files in that directory. > But what I really > need to do is to search subdirectories too. Try this: application .../*.cpp (that's 3 dots before the slash). This is in the FAQ, btw: see section 16.1 there. > If it doesn't do you know if I can access the "wildcard" functionality > from within my application The function which expands wildcards is called `glob'. Look it up in the library docs.