Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem using the find command

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

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

824 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