We help IT Professionals succeed at work.

Finding text string How to

mobot
mobot asked
on
Medium Priority
283 Views
Last Modified: 2013-12-27
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?
Comment
Watch Question

Commented:
Your last character is wrong e.g. the colon ":" it should be a semicolon ";" so:

find / -type f -exec grep -li "mbgnet" {} \;

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
XoF

Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.