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 678E9138CA2 for ; Thu, 23 Apr 2015 14:45:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46816E09CF; Thu, 23 Apr 2015 14:45:41 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id EBE9DE091E for ; Thu, 23 Apr 2015 14:45:39 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.8]) by mail.digimed.co.uk (Postfix) with ESMTPA id AEB4626990 for ; Thu, 23 Apr 2015 15:45:38 +0100 (BST) Date: Thu, 23 Apr 2015 15:45:32 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)? Message-ID: <20150423154532.3c1ad6a9@digimed.co.uk> In-Reply-To: <5538D866.80309@libertytrek.org> References: <553173CD.4090801@libertytrek.org> <20150417225927.25380c30@digimed.co.uk> <5538D866.80309@libertytrek.org> Organization: Digital Media Production X-Mailer: Claws Mail 3.11.1-86-g4b21af (GTK+ 2.24.27; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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: multipart/signed; micalg=pgp-sha1; boundary="Sig_/C8SDx58tupYkfr_Vel5bsO/"; protocol="application/pgp-signature" X-Archives-Salt: 53905446-a606-4701-b352-0771d5730736 X-Archives-Hash: 2897f7ce790387c00e2f65760fd8dbb9 --Sig_/C8SDx58tupYkfr_Vel5bsO/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 23 Apr 2015 07:32:54 -0400, Tanstaafl wrote: > What I'd like is the output you get with >=20 > 'grep -ir "searchstring" .' >=20 > which includes the line of text from each matching file that contains > the searchstring, like this: >=20 > > ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3D3097,W=3D3185:= 2,S:Name > > asked me to approve Test PO 12036 this afternoon so she could > > see ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3D3097,W=3D3= 185:2,S:it > > in the system. In looking at Test PO 12033 & 12034 they show > > signed ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3D3097,W= =3D3185:2,S:by > > me however I did not approve these test PO's only test PO 12036 - > > how ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3D3097,W=3D3= 185:2,S: > > Name asked me to approve Test PO 12036 this afternoon so she could =20 >=20 > but... >=20 > What I'd like is for each output line showing the file-hit to be > prefaced with at least the date/time of the file (permissions/owner etc > would be ok too, but I at least need the date/time), like you get when > doing an ls -al... Something like this? for i in $(grep -lr searchstring .);do ls -l $i grep -H searchstring $i done I'm sure you could format it better using the options from ls. --=20 Neil Bothwick I am McCoy of Bo...Damnit! I'm a doctor, not a collective! --Sig_/C8SDx58tupYkfr_Vel5bsO/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlU5BYwACgkQum4al0N1GQMNMQCcC0nOoYQL2xbI/S9h/+w7ZmGo SHYAnj8cX4x6ZTrHNIGiHgerhinSGuvx =xNyp -----END PGP SIGNATURE----- --Sig_/C8SDx58tupYkfr_Vel5bsO/--