LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem using find to find word (http://www.linuxquestions.org/questions/linux-software-2/problem-using-find-to-find-word-535413/)

windsurfer 03-07-2007 11:35 AM

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

druuna 03-07-2007 11:43 AM

Hi,


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

Not /; :)

Hopt this helps

windsurfer 03-08-2007 04:42 AM

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

colucix 03-08-2007 08:09 AM

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!


All times are GMT -5. The time now is 11:07 AM.