From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Counting words Date: Tue, 10 Apr 2007 17:13:46 +0200 Message-ID: <63D468C6-CA59-487A-AEB2-4680D3C00E51@Web.DE> References: <461B7912.9060902@home.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1176243433 9749 80.91.229.12 (10 Apr 2007 22:17:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2007 22:17:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?"Wilfred_Zegwaard_=28priv=E9=29"?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 00:16:21 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HbI4t-0004f9-FM for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2007 17:16:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbI8p-0005pd-Ru for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2007 11:20:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbI8b-0005la-JM for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 11:20:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbI8Z-0005h3-L2 for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 11:20:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbI8Z-0005gu-C3 for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 11:20:03 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HbI4c-0007Ro-3f for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 11:15:58 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 8CEE57274116; Tue, 10 Apr 2007 17:13:53 +0200 (CEST) Original-Received: from [62.134.232.11] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1HbI2b-0000D0-00; Tue, 10 Apr 2007 17:13:53 +0200 In-Reply-To: <461B7912.9060902@home.nl> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42564 Archived-At: Am 10.04.2007 um 13:46 schrieb Wilfred Zegwaard (priv=E9): > I mean specific instances of words. The number of times eg that =20 > "the" occurs in a text. But I need to search on specific =20 > combinations, like "the exact word", but also a fuzzy search on =20 > specific combinations. You might think of making the whole text or region temporarily to one =20= line and split it at "the exact word" to have as many lines as =20 instances exist. For counting a particular word you can convert each instance of white =20= space into a newline, grep for exactly this particular word, and then =20= count (a pipe of tr, grep, wc as shell-command for example). -- Greetings Pete A common mistake that people make when trying to design something =20 completely foolproof is to underestimate the ingenuity of complete =20 fools.