Reputation
573
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
6 7
Newest
 Scholar
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
May
21
awarded  Scholar
May
21
accepted Using a zsh function in find?
May
21
awarded  Student
May
21
comment Using a zsh function in find?
Ok, thanks. I was just thinking that, since find is executing in zsh, it should be able to get the definition (or the shell replacing it with a temporary script or something). And you are right, spawning a new shell for each file is ridiculously expensive. As I said, I'll just rewrite it as a script instead. Your last suggestion does not work, by the way, most "packages" (which has nothing to do with software distribution in OS X) are defined via metadata so (apart from a handful of known extensions) you need to query mdlsto know if it is a package.
May
21
asked Using a zsh function in find?
Jun
13
awarded  Guru
Feb
12
awarded  Yearling
Oct
21
awarded  Supporter
Feb
12
awarded  Yearling
Apr
28
awarded  Enlightened
Mar
23
awarded  Enthusiast
Mar
10
comment Does grep use a cache to speed up the searches?
@pboin Ok, I took a small shortcut. Of course it is the part of the kernel that handles the filesystem that does the caching not the filesystem (on the disk) in itself. Pedantic but true. :)
Mar
10
awarded  Good Answer
Mar
9
awarded  Mortarboard
Mar
9
awarded  Nice Answer
Mar
9
awarded  Teacher
Mar
9
answered Does grep use a cache to speed up the searches?
Feb
12
awarded  Autobiographer