Re: Using grep to search for words in directories
From: David Thompson (dat1965_at_yahoo.com)
Date: 06/23/03
- Next message: Alan Connor: "Re: Using grep to search for words in directories"
- Previous message: Chris Cox: "Re: regular expressions"
- In reply to: Alan Connor: "Re: Using grep to search for words in directories"
- Next in thread: Alan Connor: "Re: Using grep to search for words in directories"
- Reply: Alan Connor: "Re: Using grep to search for words in directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 23 Jun 2003 20:25:35 GMT
"Alan Connor" <xxxxxx@xxxx.xxx> wrote
> Yes. It does work in most situations. You just
> ignore the error messages.
But if this code is being used in a script, then the error
messages might not be so easily ignored.
> He said nothing about searching sub-directories or
> having a huge directory.
True.
> Or having names with blanks in them, which is unusual.
I agree that blanks and newlines in filenames are unusual.
I never care, usually, if my solutions handle such filenames
because I don't deal with them much. To me, if a filename
contains a blank or newline (esp the newline) it is broken
and should be fixed. Stephane, on the other hand, is very
thorough and I always appreciate that, despite the filter
my mind applies to his answers. I presume his experience
is such that his being thorough is a policy that has saved
him countless hours, and I feel a subtle prodding when I
read Stephane's posting to be thorough, too.
> What if he doesn't have find?
Then OP has larger problems, naturally.
> If you are going to nitpick, nitpick yourself FIRST.
Alan, one huge convenience (nay purpose) of the NGs is
to archive answers for posterity. How pointless if every
answer was lost to all except those who were around during
the brief period their news server kept the posting.
The community of each NG tends to want the best possible
answers provided to each poster. That is, people like
Stephane, Thomas Dickey, Barry Margolin, Brian Hiles,
etc etc, chime in when they have something to add, based
upon their expertise and experience.
Watching this posting reminds me of your recent exchange
with Thomas Dickey, another guru beyond compare. I'm
hopeful that exchanges such as yours aren't perceived
as rude and drive these fine gentlemen away.
Please try to be kindler and gentler.
-- David Thompson Foster City, CA
- Next message: Alan Connor: "Re: Using grep to search for words in directories"
- Previous message: Chris Cox: "Re: regular expressions"
- In reply to: Alan Connor: "Re: Using grep to search for words in directories"
- Next in thread: Alan Connor: "Re: Using grep to search for words in directories"
- Reply: Alan Connor: "Re: Using grep to search for words in directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|