LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trouble with find command in bash (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-with-find-command-in-bash-249031/)

vrdhananjay 10-30-2004 04:33 AM

trouble with find command in bash
 
hey..
was trying to find a string in the sorce directory of oo.org
a suggested command was
find -name '*.src' -exec grep -Hn "blah blah"{}\;
the shell gives me an errot saying...something like
-exec arguments not found...
or something to the same effect.
any idea nyone>
dj

druuna 10-30-2004 04:36 AM

Hi,

There should be a space between the last " and the first {

ie:

find -name "*src" -exec grep -Hn "blah blah" {}\;

Hope this helps.

vrdhananjay 10-30-2004 04:46 AM

thanks will try it and get back at this thread....
have to access windows,you see..modem doesnt work with linux...
cheers,
dj

vrdhananjay 10-30-2004 11:37 PM

thanks it was actually a space between {} and the backslash....
cheers,
dj


All times are GMT -5. The time now is 08:45 PM.