From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Most used words in current buffer Date: Thu, 19 Jul 2018 14:08:59 -0600 Message-ID: <20180719135906919281355@bob.proulx.com> References: <861sc1iu1m.fsf@zoho.com> <87pnzkcgna.fsf@bsb.me.uk> <20180719000330488732477@bob.proulx.com> <87effzywgk.fsf@alphaville.usersys.redhat.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1532030851 30942 195.159.176.226 (19 Jul 2018 20:07:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2018 20:07:31 +0000 (UTC) User-Agent: Mutt/1.10.0 (2018-05-17) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 22:07:26 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgFCw-0007xH-20 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2018 22:07:26 +0200 Original-Received: from localhost ([::1]:45142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgFF3-0003oN-2Y for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2018 16:09:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgFEX-0003o6-W4 for help-gnu-emacs@gnu.org; Thu, 19 Jul 2018 16:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgFET-00051G-1C for help-gnu-emacs@gnu.org; Thu, 19 Jul 2018 16:09:05 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:56205) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fgFES-00050h-S9 for help-gnu-emacs@gnu.org; Thu, 19 Jul 2018 16:09:00 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 934C72364 for ; Thu, 19 Jul 2018 14:08:59 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 567342123E for ; Thu, 19 Jul 2018 14:08:59 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 4C2E42DC71; Thu, 19 Jul 2018 14:08:59 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87effzywgk.fsf@alphaville.usersys.redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117502 Archived-At: Nick Dokos wrote: > IIRC, Kernighan & Pike say in the "Unix Programming Environment" that > there *was* a `head' program, in addition to the `tail' program. It > fell into disuse and disappeared almost immediately after sed became > available. I think you may be thinking of the 'gres' program. Again here I am not going to look up the reference but instead just reply upon my feeble human memory. But I think you are thinking of the gres program, global regular expression substitute, which if that route were followed would require a lot of greX programs where X is replaced by many specific things and was completely subsumed by 'sed'. Also remember that at the time knowledge and daily use of ed (and qed, ex, and the others) made using sed very easy. Lots of shared knowledge. However today that sed may seem arcane to people is just that they are no longer familiar with ed. It no longer has that shared learning that made sed so familiar back in the day. Bob