Date: Sun, 31 May 2009 23:25:01 +0800 From: =?utf-8?B?6YOR5aSp5a6H?= <zhengtianyu@gmail.com> To: Zbigniew Szalbot <z.szalbot@lcwords.com> Cc: freebsd-questions@freebsd.org Subject: Re: find and searching for specific expression in files Message-ID: <20090531152500.GA1119@zheng.org> In-Reply-To: <dd6b168d2af9ddbcfc52e5c0397e4d6a.squirrel@relay.lc-words.com> References: <dd6b168d2af9ddbcfc52e5c0397e4d6a.squirrel@relay.lc-words.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 30, 2009 at 11:25:12AM +0200, Zbigniew Szalbot wrote: > Hello, >=20 > Can you please give me a hint how to use find to search for a specific > text within files? If you just want the filenames which contain the string you are searching for, use the "-l" argument to tell grep to print out the filenames. For example: grep -rl "string" . will print out all the filenames containning "string". >=20 >=20 > --=20 > Zbigniew Szalbot >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" =E9=83=91=E5=A4=A9=E5= =AE=87 2009=E5=B9=B405=E6= =9C=8831=E6=97=A5 --=20 zheng.org --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoioUwACgkQG6/s6B3RblM7+gCeJMCkH2ZcvYvx7u7rUWWlFQ9r k1IAniWxoQmnXU8Q/mmQLcsxuiTftdLq =M8XS -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090531152500.GA1119>