Lock up OSX fun

Matts on 2003-04-09T16:38:47

$ grep -hair 'SomeString' . > strings.txt
Think about it...


hmmm....

wickline on 2003-04-09T17:19:28

seems like you'd want to
grep -air
instead... unless you don't care where it is.

-matt

Re:hmmm....

wickline on 2003-04-09T17:21:04

... and put the results elsewhere too, of course :)

-matt

Re: Lock up OSX fun

jmcnamara on 2003-04-09T21:20:33

It does a depth first search writing maches to "strings.txt" and when it gets back to "." it finds more matches in "strings.txt" and carries on matching until the disk fills up.

Even if it isn't a depth first search it will probably get into an infinite loop unless there aren't any matches in the search root directory.

Something like that? :-)

John
--

Re: Re: Lock up OSX fun

Matts on 2003-04-09T21:29:26

Yup. Except on Linux it doesn't lock up X (or anything). On OS X it locks up the window manager, hard.

Re: Re: Lock up OSX fun

ct on 2003-04-09T22:54:42

For as much as I love OSX and think that it's stable, it really doesn't do well with the seriously freaky stuff. I've locked the display twice now by accidentally pointing the Wallpaper configurator in System Preferences at a directory containing a 500meg .tif, wherupon it proceeds to try to create a thumbnail of it for me, you know, to be helpful.