Finding text string How to

Solaris v2.5
I'm trying to find a string of text.  I'm using the following command.
find / -type f -exec grep -li "mbgnet" {} \:

The os returns find: incomplete statement

What's the correct syntax?
mobotAsked:
Who is Participating?
 
NukfrorCommented:
Your last character is wrong e.g. the colon ":" it should be a semicolon ";" so:

find / -type f -exec grep -li "mbgnet" {} \;
0
 
XoFCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: Nukfror

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

-XoF-
EE Cleanup Volunteer
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.