From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?=22Wilfred_Zegwaard_=28priv=E9=29=22?= Newsgroups: gmane.emacs.help Subject: Re: Counting words Date: Tue, 10 Apr 2007 19:37:40 +0200 Message-ID: <461BCB64.8010305@home.nl> References: <461B7912.9060902@home.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1176253900 10145 80.91.229.12 (11 Apr 2007 01:11:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 01:11:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?=22Wilfred_Zegwaard_=28priv=E9=29=22?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 03:10:59 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 1HbKIQ-0000a8-UY for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2007 19:38:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbKMO-000768-0A for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2007 13:42:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbKM8-0006yh-Nc for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 13:42:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbKM6-0006st-Tr for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 13:42:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbKM6-0006sn-Po for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 13:42:10 -0400 Original-Received: from smtpq3.tilbu1.nb.home.nl ([213.51.146.202]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HbKI8-0007RG-UQ for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 13:38:05 -0400 Original-Received: from [213.51.146.189] (port=58415 helo=smtp2.tilbu1.nb.home.nl) by smtpq3.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1HbKI7-0007sL-Ry for help-gnu-emacs@gnu.org; Tue, 10 Apr 2007 19:38:03 +0200 Original-Received: from [84.31.187.8] (port=1280 helo=[84.31.187.8]) by smtp2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1HbKI2-0005h2-Tx; Tue, 10 Apr 2007 19:37:58 +0200 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <461B7912.9060902@home.nl> X-AtHome-MailScanner-Information: Neem contact op met support@home.nl voor meer informatie X-AtHome-MailScanner: Found to be clean X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:42568 Archived-At: Yep. This is what I need. Can you point me to documentation where the appropriate functions and key-bindings can be found? An entry / link is ok. (Not grep. I've got that.) Wilfred PS: There seems to be a function in EMacs where I can attach a specific signature, a sort of approximate CRC, to a fuzzy search, a bind to "the exact word". Is that available? Am 10.04.2007 um 13:46 schrieb Wilfred Zegwaard (privé): > I mean specific instances of words. The number of times eg that > "the" occurs in a text. But I need to search on specific > combinations, like "the exact word", but also a fuzzy search on > specific combinations. You might think of making the whole text or region temporarily to one line and split it at "the exact word" to have as many lines as instances exist. For counting a particular word you can convert each instance of white space into a newline, grep for exactly this particular word, and then 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 completely foolproof is to underestimate the ingenuity of complete fools. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 9-4-2007 22:59