a question of 'find' command

From: Carolyn Lee (carolynlee1999@hotmail.com)
Date: Wed May 08 2002 - 19:07:44 EDT


Hi Gurus,

It might be a simple question, but I do not know how to do the trick.

I want to write a shell script to use 'find' command to find some files and
do a 'grep' on it, it works like this way:
# myfind "*.h" SIG_IGN

The following is my script:
#! /bin/sh
/usr/bin/find . -name $1 -exec grep $2 -print

It does not work, how can I do this?

TIA for your help.

_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:18 EDT