RE: Find Text in files

2003-03-26 Thread Bob Showalter
Aim wrote: > Hi, > > Thnaks for the reply. I was thinking its something to do with recurse > as in ls -ltr, but when I do: > grep -r "^[A-Z]" *I get: "Illegal option -- r"? > > Any idea why? -r is a (handy) GNU extension to grep. "Standard" grep doesn't have it. -- To unsubscribe, e-mail:

RE: Find Text in files

2003-03-26 Thread Dan Muey
> Hi, > > Thnaks for the reply. I was thinking its something to do with > recurse as in ls -ltr, but when I do: > grep -r "^[A-Z]" *I get: "Illegal option -- r"? Hmmm, not really maybe version or way it was built or ?? I'd say try : http://www.google.com/search?q=grep+illegal+option+r > >

Re: Find Text in files

2003-03-26 Thread Aim
Hi, Thnaks for the reply. I was thinking its something to do with recurse as in ls -ltr, but when I do: grep -r "^[A-Z]" *I get: "Illegal option -- r"? Any idea why? Regards, Aim ## Dan Muey wrote: > >

RE: Find Text in files

2003-03-26 Thread Dan Muey
> Hi, > > sorry to sound like a novice but what is the -r option for? man grep -r, --recursive Read all files under each directory, recursively; this is equivalent to the -d recurse option. > > ` grep -r "$string" * ` > > It does not seem to be listed in

Re: Find Text in files

2003-03-26 Thread Aim
Hi, sorry to sound like a novice but what is the -r option for? ` grep -r "$string" * ` It does not seem to be listed in my unix refernce book. regards, Aim. ## Ramprasad wrote: > James Ferree wrote: > >

RE: Find Text in files

2003-03-26 Thread Kipp, James
> > I am looking to write a script that will look in a > file for a list of text strings to search for like > > req_ > req_bbb > req_ccc > > and search all the files in a subdirectory and below > for the string, if it is found, then it prints out the > the original string followed by the fil

Re: Find Text in files

2003-03-26 Thread Sudarshan Raghavan
On Wed, 26 Mar 2003, James Ferree wrote: > Hi, > > I am looking to write a script that will look in a > file for a list of text strings to search for like > > req_ > req_bbb > req_ccc > > and search all the files in a subdirectory and below > for the string, if it is found, then it prints o

Re: Find Text in files

2003-03-26 Thread Ramprasad
James Ferree wrote: Hi, I am looking to write a script that will look in a file for a list of text strings to search for like req_ req_bbb req_ccc and search all the files in a subdirectory and below for the string, if it is found, then it prints out the the original string followed by the fil