Problem using the find command

I'm new to Linux and am trying to search for text within a .c & .h file.

I use the following command in one of my subdirectories:

find ./ -name "*.c" -follow -exec grep "OpenFile" {}\; -print

and it just hangs everytime.  I was able to use this command yesterday and had no problems with it.
jeweeAsked:
Who is Participating?
 
_nn_Connect With a Mentor Commented:
Shouldn't there be a space before the \; ?

find ./ -name "*.c" -follow -exec grep "OpenFile" {} \; -print
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.