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: Search through the string's space for find the target string whose md5sum matches the required condition. Date: Fri, 15 Oct 2021 12:36:42 +0800 Message-ID: References: <87tuhmwfxj.fsf@zoho.eu> <87k0igh60k.fsf@zoho.eu> 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="11651"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 15 06:56:29 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 1mbFGe-0002p1-M1 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 06:56:28 +0200 Original-Received: from localhost ([::1]:47160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbFGd-0007ZM-Ho for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 00:56:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbExm-0005F5-Mh for help-gnu-emacs@gnu.org; Fri, 15 Oct 2021 00:37:01 -0400 Original-Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:42906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbExj-000447-Jv for help-gnu-emacs@gnu.org; Fri, 15 Oct 2021 00:36:58 -0400 Original-Received: by mail-ua1-x92f.google.com with SMTP id j8so15591167uak.9 for ; Thu, 14 Oct 2021 21:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=A0/klvxnEaPN7MKVMErMrrQZ027CWJP65U/8wDBKKG0=; b=hluC2soNDVdWW/ALmiLE2EQasSV4RA5BuC+ZkqHLHKpKGTE818e/lDg3tgG7eSg3m3 DmQu5IYV3fMpupl2qh6ALV69VgYGdIAT8NTgOXypMuPYBO3fKod+X8zXLQSYVHyN0teO +TIK+rA7/snqCTsZ1VHOGvRWqimE3f35AlrIXbhfX18siM3b0odAKl0nbZ52uwc/RTtJ n1533P+BrrMOD+FxWXuaELd1Ygyy2ZIglX8kjPrxMZ3qz8VYEwZL+x3C+WPV+TrNZwj/ Apf/FfsMUJyID+iHB8SOX4JroNpYAH6RXAu61Y311uRkz/druYP9P3N/5OVbpMsszmml NAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=A0/klvxnEaPN7MKVMErMrrQZ027CWJP65U/8wDBKKG0=; b=4M5C5TIMd7tur0aMLL7jetG/ES0i40Dg/6y0JMM1LhpChbIbJ1mIkr5hbQCkpVmBaC 4Qu+lGyBTJNQaT7aj0V9x3GHTD6Vrfo6bE4F1r/t55tzX4/pOcolK7dD1plvUanBBEeC RQPaZaqd8TZkzGAqOrvM5ooYtSoYYxozpgGj1e31qbU19ip9IGP+t5KEB0DTdsxoPrUm 138aFsVsZgaE4L2xg11qdg+h9D8okxG3wkV4q86/2i+WqFTAxADcvjfqID97PRmNRHtF K9GbnRiKNZqAt/EUKvY8hzq2yTFonu8c7oDfwLGCY5fv1dkFaRgxx40FwkTEmpZQjJaG lcJA== X-Gm-Message-State: AOAM533y/wLyu1LvxaqRDJJDZ+F3xeS/vMZGs5IksuoViULYMeCvI05W muU7agYDjOz+kVQI6KdT9I+2UbI/8n5AMd6BBy2vvjlmcARxzzJ4 X-Google-Smtp-Source: ABdhPJzfcbNtgWlPCsW/s47eg/0xyiyDPQt1cujs4DUUUweYRBDS1/8pcvgHdVCfWbFAy7ush3xmZm866FBJmWqyzH8= X-Received: by 2002:a67:c31c:: with SMTP id r28mr11831928vsj.10.1634272614038; Thu, 14 Oct 2021 21:36:54 -0700 (PDT) In-Reply-To: <87k0igh60k.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::92f; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92f.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:133798 Archived-At: On Thu, Oct 14, 2021 at 7:14 AM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > Bash based UNIX tool one line solution: > > > > $ for i in TASC{A..Z}O3RJMV{A..Z}WDJKX{A..Z}ZM; > > do > > echo $i; echo -n $i | md5sum | cut -d ' ' -f1; > > done | tr '[a-z]' '[A-Z]' | > > egrep -m1 -B1 > > I think you can use [:lower:] and [:upper:] with tr(1) ... > > tr '[:lower:]' '[:upper:]' I don't see any benefit of this usage for the problem under discussion. > Otherwise looks good ... > > -- > underground experts united > https://dataswamp.org/~incal