Solved

Problem using the find command

Posted on 2003-10-30
1
242 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
ID: 9653777
Shouldn't there be a space before the \; ?

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

20 Experts available now in Live!

Get 1:1 Help Now