LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2007, 11:35 AM   #1
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
problem using find to find word


Hi

I am new to using linux. I need a file on the machine which contains a specific word I have been told that I can use find to do this, I have tried to do this with reference to the man page but keep getting a missing argument to 'exec' error

I am typying:-
find . -exec grep duck {}/;

can anyone help

thanks adrian
 
Old 03-07-2007, 11:43 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,


That should be: find . -exec grep duck {} \;

Not /;

Hopt this helps
 
Old 03-08-2007, 04:42 AM   #3
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
find and lpd

Hi

Thank you for seeing that, it now works!!

The reason for doing find gave me no answer this was to find how the lpd demon was started, unfortunaltly the find came back with no answer! The problem I have got is that if I do top on my machine the lpd demon is gobbleing up all the cpu causing the machine to go very very slowley, I dont need lpd on this machine so I was hopeing to remove it from the startup scipt, but being kind of new to linux I do not know how to do this. Please please please does anyone have any idea how to do this?!!! It has been 7 weeks asking questions about this but no one has come back with an answer.

Adrian
 
Old 03-08-2007, 08:09 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Hi, Adrian. Since your last question is totally unrelated to the subject of this thread, I'd suggest to open a new one. It would be useful also to specify which distribution you are running on (you can edit your LQ profile to do this) and which Desktop Manager you are using. Please, don't read my answer as a critique: it's just a suggestion!
 
  


Reply

Tags
find



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find for key word ashley75 Linux - General 1 01-13-2007 10:53 PM
find and replace answer word? matarodi Linux - General 0 10-27-2005 01:51 PM
find a word within any files Linh Linux - General 6 06-06-2004 11:15 AM
find a word 2 jojo Programming 4 02-23-2003 09:55 AM
Find a word. jojo Programming 6 02-21-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration