From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 05:54:52 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E60D1218 for ; Mon, 7 Jul 2014 05:54:52 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB1A52C7F for ; Mon, 7 Jul 2014 05:54:52 +0000 (UTC) Received: from r56.edvax.de (port-92-195-69-249.dynamic.qsc.de [92.195.69.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 80C803CC4F for ; Mon, 7 Jul 2014 07:54:44 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s675shSu002743 for ; Mon, 7 Jul 2014 07:54:43 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 7 Jul 2014 07:54:43 +0200 From: Polytropon To: FreeBSD Questions Subject: The name "grep" Message-Id: <20140707075443.d47ca06a.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 05:54:53 -0000 Sometimes I get a "nostalgic seizure", and when I do so, I read one of my older books (which I have plenty of to choose from). Yesterday's choice was "Keine Angst for UNIX" (no fear of UNIX) by Christine Wolfinger, published 1991 by VDI Verlag Duesseldorf. On page 173 I read something that I hadn't noticed yet (translated): grep: global regular expression print (combination of an editor command) So today I checked "man grep", but it doesn't mention it. Therefore here are my questions, primarily aiming at "UNIX dinosaurs" and historians on list - because you probably need to be either old or interested in UNIX history in order to provide a substantial opinion. :-) 1. Is the mentioned interpretation correct or at least acceptable? 2. Should the manpage mention it? In my opinion, "print lines matching a pattern" describes what grep does, but not really what it means (or where the name of the command comes from). Other manpages explain the name of the command or provide background information so you can understand why the particular name has been chosen, for example: sed = (s)tream (e)ditor (section NAME) tar = manipulate (t)ape (ar)chives (section NAME) awk = (A)ho, (W)einberger, (K)ernighan (section SEE ALSO) dd = copy and convert (cc was taken by C compiler, but not mentioned in the manpage; "common knowledge") vi = visual editor (in contrast to ex; not mentioned) Should "man grep" contain a hint about "global regular expression print" or something similar? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...