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:
> 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
>
>
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:
> >
> 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
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:
> >
>
> 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
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
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