From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9C637138C9D for ; Fri, 17 Apr 2015 22:02:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDD94E096F; Fri, 17 Apr 2015 22:02:50 +0000 (UTC) Received: from mail0200.smtp25.com (mail0200.smtp25.com [174.37.170.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A314E092C for ; Fri, 17 Apr 2015 22:02:49 +0000 (UTC) Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.9/8.14.8) with ESMTP id t3HM2lMV005595 for ; Fri, 17 Apr 2015 18:02:47 -0400 From: covici@ccs.covici.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)? In-reply-to: <20150417214710.GO7561@ns1.bonedaddy.net> References: <553173CD.4090801@libertytrek.org> <20150417214710.GO7561@ns1.bonedaddy.net> Comments: In-reply-to Todd Goodman message dated "Fri, 17 Apr 2015 17:47:10 -0400." X-Mailer: MH-E 8.5; nmh 1.6; GNU Emacs 23.4.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5591.1429308167.1@ccs.covici.com> Date: Fri, 17 Apr 2015 18:02:47 -0400 Message-ID: <5594.1429308167@ccs.covici.com> X-SpamH-OriginatingIP: 70.109.53.110 X-SpamH-Filter: s-out-001.smtp25.com-t3HM2lwp026090 X-Archives-Salt: ba493c52-2ee4-42e4-8193-50c1de2a5bb4 X-Archives-Hash: f36337838c5e7bf5818de3291a35ffe8 Todd Goodman wrote: > * Tanstaafl [150417 16:58]: > > Hi all, > > > > Ok, this is driving me crazy... > > > > I want to be able to quickly search an entire users Maildir for an email > > containing a certain string, but output just the filenames WITH THE > > DATE/TIMEs... > > > > So, from the target users top level Maildir: > > > > grep -lr * | xargs ls -lt > > > > ^^^ appears to work, and does return results for the cur and new > > subdirs, but seems to be ignoring the rest of the Maildirs. Maybe it has > > something to do with the fact that they start with dots (ie, .Sent, > > .Trash, etc)?? > > > > Anyone have any idea why the above doesn't search them all? > > > > Thanks > > Try? > > grep -lr * | xargs ls -lta > > Maybe? Better use the find command with -exec grep and its arguments. You will probably need -H if you want to know the filename. The difference is that find only ignores . and .., but does go over other things beginning with . -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com