From owner-freebsd-questions@FreeBSD.ORG Sun May 31 15:48:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B1F61065672 for ; Sun, 31 May 2009 15:48:10 +0000 (UTC) (envelope-from zhengtianyu@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id E811E8FC19 for ; Sun, 31 May 2009 15:48:09 +0000 (UTC) (envelope-from zhengtianyu@gmail.com) Received: by rv-out-0506.google.com with SMTP id k40so2808149rvb.43 for ; Sun, 31 May 2009 08:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=hB3cCllAubax1ukQohH5KaNytxQKytp3a0D5grmPUXk=; b=aEVFugw2nqRdRzZy3hYLxKYOos9U6ZOc5pFAiKvkqX01KoMG0ewvlRP+BxlKAIUnCm faTcJutYoXNOZqbB6LEQlG7plnjyBVWnE4mqH+fLgHy3WQZsDoaFHQm8a15jK/HzflNA g/VVyXrq6aXVZ+nEFCITUbiU0WIbgm6oOPWTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=KOVYnH5+BiSmoGj3+MiwwsHDdE0Rr05SE3cU/it6hmtQeADy+RtEreG983z/WUqKd2 LghuqCenyUpvB8EHdphKKgJVM9OK+8Z06lxrMny8bgUvWQvD0ZovYoGa4jRb6oQMwLr+ RG8G/9Oxpb255QJouRZvq76m0XzSsDV8ysMvY= Received: by 10.140.144.1 with SMTP id r1mr4862017rvd.131.1243783015712; Sun, 31 May 2009 08:16:55 -0700 (PDT) Received: from localhost ([220.168.116.223]) by mx.google.com with ESMTPS id b39sm10160765rvf.3.2009.05.31.08.16.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 31 May 2009 08:16:54 -0700 (PDT) Date: Sun, 31 May 2009 23:25:01 +0800 From: =?utf-8?B?6YOR5aSp5a6H?= To: Zbigniew Szalbot Message-ID: <20090531152500.GA1119@zheng.org> Mail-Followup-To: Zbigniew Szalbot , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: find and searching for specific expression in files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2009 15:48:10 -0000 --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--