* Arthur Corliss <acorliss@nevaeh-linux.org> [2005-02-23 18:43 +0100]:
> On Wed, 23 Feb 2005, David J. Weller-Fahy wrote:
> > You know, it's things like that started my habit of perusing the man
> > page before composing a command. I found myself struggling over
> > getting
Of course, if you're looking at the wrong man page (sed instead of grep
in this case) it doesn't help. :/
> Uh, guys, what's wrong with simply using:
>
> find MailDir/ -type f -exec grep -li ledoux \{\} \;
Much better! Thanks for the tip, I'm going to go kick myself now. ;]
> It lists just the filename, and nothing more. Now, given the example above
> (if you *really* want to do a -iH) I would not use sed, but cut:
>
> find MailDir/ -type f -exec grep -Hi ledoux \{\} \; | cut -d: -f1
The only problem with this is it cuts off part of the filename (maildir
files contain a colon). So I think that your first command is
sufficient.
Regards,
-- dave [ please don't CC me ] --------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.Received on Wed Feb 23 21:55:40 2005
This archive was generated by hypermail 2.1.8 : Wed Feb 23 2005 - 21:55:40 AKST