Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)? covici@××××××××××.com