spaces in filenames

View: New views
2 Messages — Rating Filter:   Alert me  

spaces in filenames

by Roland Deluca :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

WinXP:

 

Grep.exe  -r  BUF_SIZE  "D:\Copy of EXAMPLES"         -> returns results
OK with spaces in directory and recurse on

Grep.exe      BUF_SIZE   D:\EXAMPLES\*.*                  -> returns
results OK works with wild char

 

Grep.exe      BUF_SIZE  "D:\ Copy of EXAMPLES \*.*"   -> returns NO
RESULTS

 

 

Does not return results for a directory with spaces in the file name and
wild characters in quotes?

 

If you know a way to do it can you let me know.

 

roland

 

 

 

 

 

 

 

 


Re: spaces in filenames

by Mike Frysinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 03 September 2009 18:01:09 Roland Deluca wrote:
> Grep.exe      BUF_SIZE  "D:\ Copy of EXAMPLES \*.*"   -> returns NO
> RESULTS
>
> Does not return results for a directory with spaces in the file name and
> wild characters in quotes?

this really isnt a grep problem.  the shell handles the expansion of
wildcards.  try not quoting them: "D:\foo bar\"*.*
-mike


signature.asc (853 bytes) Download Attachment