delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/23/07:55:22

Date: Sun, 23 Sep 2001 14:52:41 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Is it possible to search subdirectories from the command line....
In-Reply-To: <1001243912.289276@queeg.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.1010923145102.14915A-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 Sun, 23 Sep 2001, Martin Str|mberg wrote:

> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> : Try this:
> 
> : 	application .../*.cpp
> 
> : (that's 3 dots before the slash).
> 
> Hmm... Why isn't grep working then?:
> 
> -bash-2.03$ pwd
> /djgpp/src.compiling
> -bash-2.03$ grep islower .../*.c
> grep: .../*.c: No such file or directory (ENOENT)

Because you invoke Grep from Bash.  Bash expands the command-line 
arguments itself and passes them to the application in a way that 
disables the expansion by the app (via spawn*).  Try from command.com.

- Raw text -


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