From owner-freebsd-questions Wed Oct 9 20:20:10 2002 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 86AD437B40E for ; Wed, 9 Oct 2002 20:20:08 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02B9D43E42 for ; Wed, 9 Oct 2002 20:20:07 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id E9CD68123B; Thu, 10 Oct 2002 12:50:04 +0930 (CST) Date: Thu, 10 Oct 2002 12:50:04 +0930 From: Greg 'groggy' Lehey To: Toby Irvine Cc: freebsd-questions@FreeBSD.ORG Subject: Using grep (was: Please help me) Message-ID: <20021010032004.GF87617@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday, 9 October 2002 at 23:08:52 -0400, Toby Irvine wrote: > I have one question for you. I have been looking to find out what the > command/utility "grep" actually means or stands for. I have searched the > net and keep finding the same answer, which I have been told is wrong. > Could you please help me out and let me know. Someone told me that only an > old school unix person would be able to tell me. Please help? You'll get better replies if you use a subject line which explains what you're looking for. This is pretty much a generic question: "What does do?". There's also a generic answer: RTFM, more specifically in your case: $ man grep That may be a little hard to read, and it's certainly valid to come back here and say "I don't understand the man page". The main use of grep is as a filter: you feed it with lines of text, and it gives back the ones that match certain criteria. For example, taking this message up to this point (the file name message below), you could do: $ grep generic message $ grep foo message $ grep message message -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message