Re: NSTask - grep
Re: NSTask - grep
- Subject: Re: NSTask - grep
- From: Art Isbell <email@hidden>
- Date: Mon, 9 Jul 2001 14:19:50 -1000
On Monday, July 9, 2001, at 01:19 PM, Andreas Monitzer wrote:
The shell expands '*' before sending the command to grep. That
means you have to expand it yourself for grep (using
NSDirectoryEnumerator):
NSDirectoryEnumerator isn't equivalent to a shell expansion
of '*' unless you limit enumeration to the top-level directory
and ignore files whose names begin with '.'. Otherwise,
NSDirectoryEnumerator recurses down through all subdirectories.
NSFileManager's directoryContentsAtPath: is closer, but you'd
probably have to ignore files whose names begin with '.'.
Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836