LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-30-2004, 04:33 AM   #1
vrdhananjay
Member
 
Registered: May 2004
Distribution: red hat 9
Posts: 56

Rep: Reputation: 15
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

Last edited by vrdhananjay; 10-30-2004 at 04:35 AM.
 
Old 10-30-2004, 04:36 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

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

ie:

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

Hope this helps.
 
Old 10-30-2004, 04:46 AM   #3
vrdhananjay
Member
 
Registered: May 2004
Distribution: red hat 9
Posts: 56

Original Poster
Rep: Reputation: 15
thanks will try it and get back at this thread....
have to access windows,you see..modem doesnt work with linux...
cheers,
dj
 
Old 10-30-2004, 11:37 PM   #4
vrdhananjay
Member
 
Registered: May 2004
Distribution: red hat 9
Posts: 56

Original Poster
Rep: Reputation: 15
thanks it was actually a space between {} and the backslash....
cheers,
dj
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bash connot find the command Dunadan1821 Linux - Software 9 08-30-2004 08:04 AM
bash cant find format or mkfs command Dunadan1821 Linux - Software 3 08-12-2004 01:27 PM
Trouble with bash read command Bebo Programming 5 05-21-2004 08:21 AM
Is this a valid command? find ./ -name bash.bashrc | cat davidas Linux - Newbie 11 04-06-2004 02:16 AM
same find command not working in bash script, quotes? QuakerOatz Linux - Software 1 07-14-2003 12:04 PM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration