Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

Matts
  (email not shown publicly)

I work for MessageLabs [messagelabs.com] in Gloucester UK, except I live in Kitchener, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C. We're always hiring so feel free to email me (no telecommuters though - I'm the only exception :-).

Journal of Matts (1087)

Wednesday April 09, 2003
12:38 PM

Lock up OSX fun

[ #11549 ]

$ grep -hair 'SomeString' . > strings.txt

Think about it...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • seems like you'd want to
    grep -air
    instead... unless you don't care where it is.

    -matt
  • 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
    --
    • Yup. Except on Linux it doesn't lock up X (or anything). On OS X it locks up the window manager, hard.
      • 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.