Gentoo Archives: gentoo-user

From: Tanstaafl <tanstaafl@×××××××××××.org>
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)?
Date: Fri, 17 Apr 2015 20:58:07
Message-Id: 553173CD.4090801@libertytrek.org
1 Hi all,
2
3 Ok, this is driving me crazy...
4
5 I want to be able to quickly search an entire users Maildir for an email
6 containing a certain string, but output just the filenames WITH THE
7 DATE/TIMEs...
8
9 So, from the target users top level Maildir:
10
11 grep -lr <searchstring> * | xargs ls -lt
12
13 ^^^ appears to work, and does return results for the cur and new
14 subdirs, but seems to be ignoring the rest of the Maildirs. Maybe it has
15 something to do with the fact that they start with dots (ie, .Sent,
16 .Trash, etc)??
17
18 Anyone have any idea why the above doesn't search them all?
19
20 Thanks

Replies

Subject Author
Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)? Todd Goodman <tsg@×××××××××.net>
Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)? Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)? "Andreas K. Huettel" <dilfridge@g.o>