From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: [External] : Find the longest word in the word list file. Date: Wed, 11 Aug 2021 21:32:41 +0800 Message-ID: References: <20210811064643.GB21436@tuxteam.de> <20210811100623.GD21436@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8701"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 11 15:33:20 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDoMB-00022W-TN for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 15:33:19 +0200 Original-Received: from localhost ([::1]:46324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDoM9-0000HJ-PW for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 09:33:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDoLq-0000HB-Kl for help-gnu-emacs@gnu.org; Wed, 11 Aug 2021 09:32:58 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:40863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDoLo-0003Wf-0L for help-gnu-emacs@gnu.org; Wed, 11 Aug 2021 09:32:58 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id w20so5750791lfu.7 for ; Wed, 11 Aug 2021 06:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GStRRowDOSZ/QpLA8sSy+gP3vCezttmB1f3awUpg4Z4=; b=O9r696dmLJyiXZ/EsVtiSc5XFEBDVorP9bWyMqBomOx1Ki2fi/fiD+Z5uWb1DAaffk r8aWTUAVv0LeLwFHITA03ylKERlGjL+L40LEG8YHcZun3cij3KKbRJTbPWWiegAYpcsV VGISUu4rjCPKolCXZ0ns9IRdjts4ZqCcOqH4ijx6tW11a/pg4LTS3x83Qz/ozZWMPYP/ HBnv6LUHXouVaWaai9XfD0KH6+bCxBSjKt1IgPvTg2KCdlBNwysr2TU9MRPsxtgiCa+d QEUx1jxzYqNPhYpd0E0d/AxAVWJ1jNPUqqEIFSCwhtGiQFLE+qkXPg38nz7bbVztdFQc Btyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GStRRowDOSZ/QpLA8sSy+gP3vCezttmB1f3awUpg4Z4=; b=dEPa9AH4l9jFNOIC8oaJR0hzUSht/kSfzltES8z+v0BfmGkjJmkylRFWRSBmQlRusY Bzh3fAnlw120yNIsbfenU9lpDp8YJ/gvgT93t6nAFLUBEC/1icxOEpOHlpNhSzW+QROw 2fXvMwSEBB5QDmMX61ESEPtdXlJ4RbwsY0ivoMFdp11dSUX6zJYwVN4+kY+C1xmgb60T Ajq048ofjLuUVU5JR2D3UU/8mZoD6ht6C/JlxnZYoi5q80oSCcI9lRSSwUoYlrWlNnEX NTcHkNkZLGdKMDLSDfmQNODbSRvhr9oG21pvoipqYFF5Vd8h8kAl4WKBzZdaWWV57O+m CRaw== X-Gm-Message-State: AOAM532Y53TTqwi3wt5cnqx5Zmyta1/W6eT0bijKwvuJfJ2TI2YP/CSl 28MOAdNhbcLyGR7GSpgD5D/wvQn2inKxjYfyBHmE8K4JfC6BceK4Q4s= X-Google-Smtp-Source: ABdhPJwxHswHrUtIQou0+aTudQ5qpGhTemA22K4UM4jFxr8jBM33CfJjS2yQdhgUT/8QD1FAQdzZIHsuI2zlCM55Aqo= X-Received: by 2002:a05:6512:556:: with SMTP id h22mr25237928lfl.461.1628688773321; Wed, 11 Aug 2021 06:32:53 -0700 (PDT) In-Reply-To: <20210811100623.GD21436@tuxteam.de> Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132452 Archived-At: On Wed, Aug 11, 2021 at 6:06 PM wrote: > > On Wed, Aug 11, 2021 at 11:52:58AM +0200, Arthur Miller wrote: > > [...] > > Always fun to see how different people go about such a thing :-) Awesome! Thank you and Arthur. Got the idea. And I tried the version given by Arthur, which works like a charm. The following is the result given by the code: "correspond with someone about someone or something correspond with someone about someone or something" The above result is exactly the same as the one returned by the following UNIX command: $ awk '{print length($0),$0}' Public/repo/github.com/hongyi-zhao/english-wordlist.git/american-english-exhaustive | \ sort -k1n | tail -1 101 correspond with someone about someone or something correspond with someone about someone or something Regards, -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province