• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask - grep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSTask - grep (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: NSTask - grep
  • Next by Date: Re: NSImage scaling and data loss
  • Previous by thread: Re: NSTask - grep
  • Next by thread: Re: NSTask - grep
  • Index(es):
    • Date
    • Thread