[re-adding fink-users]

$ grep -e "STRING" -f "/path/to/FILE1" "/path/to/FILE2"

or if all your files are in the same directory

$ grep -e "STRING" -r "/path/to/directory/"

the -e isnt necessary but its nice to be explicit incase youre string
has special characters.  You can get grep via fink but its probably
already installed (usually part of a stock install for OS X)

miket


On Sun, 2 Jan 2005 17:11:59 -0500, Jonathan Levi MD
<[EMAIL PROTECTED]> wrote:
> ... search for the presence of a user-supplied string in an arbitrary
> number of files?
> 
> TIA,  Jonathan
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Fink-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fink-users
>


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to