From owner-freebsd-questions@FreeBSD.ORG Sat May 30 10:20:31 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 D2E221065672 for ; Sat, 30 May 2009 10:20:31 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id 755298FC1C for ; Sat, 30 May 2009 10:20:31 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id C8408B803E for ; Sat, 30 May 2009 12:19:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lcwords.com; s=mainlcwords; t=1243678764; bh=OhAc5Bx7DsH1AwkAwYTu1xSDzP9qlhT3LTWAnHkRbaI=; h=Message-ID:In-Reply-To:References:Date:Subject:From:To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=AyQSZV9hz2YFgCC+pcJ2uAQamiJsTENHWT3LqOop7tdgOLLnVataVyPflZu+xlYG4 ZIs0Y+FAaydc4OlHqmN3fNa19iAGqomMfG/DtUexJh5nxmQWb6QLCdtvOOoUBFDopx IyBbNY8F0C0jxO3++skK8ydad1twhYPUstFVOG5M= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 01847-04 for ; Sat, 30 May 2009 12:19:24 +0200 (CEST) Received: from relay.lc-words.com (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id 477BCB801E for ; Sat, 30 May 2009 12:19:24 +0200 (CEST) Received: from 77.254.184.81 (SquirrelMail authenticated user z.szalbot@lcwords.com) by relay.lc-words.com with HTTP; Sat, 30 May 2009 12:19:24 +0200 Message-ID: <80cddf609e38046ffa0ce3f2bdab235c.squirrel@relay.lc-words.com> In-Reply-To: <20090530101328.GA59991@owl.midgard.homeip.net> References: <20090530101328.GA59991@owl.midgard.homeip.net> Date: Sat, 30 May 2009 12:19:24 +0200 From: "Zbigniew Szalbot" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.19 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Sat, 30 May 2009 10:20:32 -0000 >> Can you please give me a hint how to use find to search for a specific >> text within files? > > Generally, you don't - find(1) does not examine the contents of files by > itself, just their directory information. You normally use grep(1) to > search within a file. Ahhh - I use grep on daily basis. Now why didn't I think of it? I got so fixed on the idea of using find that I completely forgot about grep.... Sorry for the noise and thank you very much for your help! -- Zbigniew Szalbot