Solved

Problem using the find command

Posted on 2003-10-30
1
240 Views
Last Modified: 2010-04-22
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.
0
Comment
Question by:jewee
1 Comment
 
LVL 16

Accepted Solution

by:
_nn_ earned 500 total points
Comment Utility
Shouldn't there be a space before the \; ?

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

10 Experts available now in Live!

Get 1:1 Help Now