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 |