delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/20/05:23:09

Date: Thu, 20 Sep 2001 11:20:27 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Nino Matassa <nino AT iolfree DOT ie>
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: <Pine.SUN.3.91.1010920111801.3922J-100000@is>
MIME-Version: 1.0
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

On Thu, 20 Sep 2001, Nino Matassa wrote:

> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>

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 &amp; *.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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019