From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 13:17:51 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B4116A403 for ; Fri, 7 Apr 2006 13:17:51 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BBE543D66 for ; Fri, 7 Apr 2006 13:17:47 +0000 (GMT) (envelope-from usleepless@gmail.com) Received: by zproxy.gmail.com with SMTP id s1so379517nze for ; Fri, 07 Apr 2006 06:17:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sid3vCx26mrjtyVFz50eTEwf9trCZILb1/ureiGFu+D4N+BLGBWC8g9x7xWSuyfMKJX2wE4szEeek0TmkGHuOafV/7+Tclmi2DqYMkSo13GtgV5gnbvKFeY5b/Nz3B1gpt7fvwpubC0CuAFv0+bc3PwLjEn9CosxSmKmbqZqpoc= Received: by 10.36.220.35 with SMTP id s35mr2083420nzg; Fri, 07 Apr 2006 06:17:46 -0700 (PDT) Received: by 10.36.157.10 with HTTP; Fri, 7 Apr 2006 06:17:46 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 15:17:46 +0200 From: usleepless@gmail.com To: "Mc Shch" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: How to use shell commands to work for my requests? 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: Fri, 07 Apr 2006 13:17:51 -0000 Hi Exploit_it > For example: > i want to search some files which contain "getopt" string... what's in a name... brute force: grep -R getopt * smarter: find . -name "*.cpp" -exec grep getopt {}\; -print regards, usleep PS this is a resend to fix etiquette