[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search through the string's space for find the target string whose m
From: |
Hongyi Zhao |
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 |
On Thu, Oct 14, 2021 at 7:14 AM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> 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