Finding text string How to

Posted on 2006-03-30
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?
Question by:mobot
    LVL 10

    Accepted Solution

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

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

    Expert Comment

    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.

    EE Cleanup Volunteer

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    AIX 5.3 group password policy changes 7 18
    nodeip 9 60
    Skill Development 15 100
    Unix Question 19 35
    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now