Article View: alt.privacy.anon-server
Article #307016Re: wordlist - same letters
From: Stefan Claas
Date: Mon, 02 Dec 2019 16:56
Date: Mon, 02 Dec 2019 16:56
93 lines
4235 bytes
4235 bytes
elvis-85781@notatla.org.uk wrote:
> >> On 2019-10-23, elvis-85650@notatla.org.uk <elvis-85650@notatla.org.uk>
> >> wrote:
> >> > same letters - different order
> >> >
> >> > 102:earth
> >> > 128:heart
> >>
> >> ONE DIFF lines 24/27: beach/bench
> >> ONE DIFF lines 23/38: batch/botch
> >> ONE DIFF lines 27/48: bench/bunch
> >> ONE DIFF lines 23/55: batch/catch
> >> ONE DIFF lines 32/70: block/clock
> >> ONE DIFF lines 89/92: decay/delay
> >> ONE DIFF lines 78/99: cream/dream
> >> ONE DIFF lines 66/119: class/glass
> >> ONE DIFF lines 119/121: glass/grass
> >> ONE DIFF lines 97/132: donor/honor
> >> ONE DIFF lines 133/135: horse/house
> >> ONE DIFF lines 93/143: demon/lemon
> >> ONE DIFF lines 48/150: bunch/lunch
> >> ONE DIFF lines 131/154: honey/money
> >> ONE DIFF lines 135/156: house/mouse
> >> ONE DIFF lines 145/159: light/night
> >> ONE DIFF lines 172/173: plane/plate
> >> ONE DIFF lines 148/175: lower/power
> >> ONE DIFF lines 166/176: paint/print
> >> ONE DIFF lines 180/181: radio/ratio
> >> ONE DIFF lines 90/183: defer/refer
> >> ONE DIFF lines 145/187: light/right
> >> ONE DIFF lines 174/189: pound/round
> >> ONE DIFF lines 145/199: light/sight
> >> ONE DIFF lines 196/204: shell/smell
> >> ONE DIFF lines 203/204: small/smell
> >> ONE DIFF lines 24/221: beach/teach
> >> ONE DIFF lines 222/224: thank/think
> >> ONE DIFF lines 145/227: light/tight
> >> ONE DIFF lines 148/233: lower/tower
> >> ONE DIFF lines 40/235: brain/train
> >> ONE DIFF lines 163/241: onion/union
> >> ONE DIFF lines 209/256: south/youth
> >>
> >
> > Hi elvis,
> >
> > can you please tell me what program or scipt you used
> > to find the ONE DIFFs?
>
> ==================
> $ ./sort_letters.plx < WORDS
> ==================
> #!/usr/bin/perl
>
> use
> strict; use
> warnings;
> my
> $txt; %::count =
> (); %::blanks =
> ();
> while (defined($txt = <>)) {
> chomp($txt);
> my @q = sort split(//, $txt);
> my $ntxt = join('', @q);
> if (defined( $::count{$ntxt} )) {
> printf("SAME LETTERS lines %d/%d: %s/%s\n", $::count{$ntxt}, $.,
> $ntxt, $txt); } else {
> $::count{$ntxt} = $.;
> }
>
> for(my $num = 0 ; $num < length $txt; $num++) {
> my @dotty = split(//, $txt);
> $dotty[$num] = '.';
> my $blank = join('', @dotty);
> if (defined( $::blanks{$blank})) {
> printf("ONE DIFF lines %d/%d: %s/%s\n", $::blanks{$blank}[0], $.,
> $::blanks{$blank}[1], $txt); } else {
> $::blanks{$blank} = [$., $txt];
> }
> }
> }
> ==================
Thank you very much!
Best regards
Stefan
--
box: 4a64758de9e8ceded2c481ee526440687fe2f3a828e3a813f87753ad30847b56
certified OpenPGP key blocks available on keybase.io/stefan_claas
Technical Details
Message-ID:
<20191202175619.00007fa7@300baud.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<slrnqr1fv0.5d9.elvis-85650@notatla.org.uk> <slrnqr1hpc.5r5.elvis-85650@notatla.org.uk> <20191201145826.00005705@300baud.de> <slrnqu8lvh.p9l.elvis-85781@notatla.org.uk>Show Full Headers
Complete Article Headers
Message-ID: <20191202175619.00007fa7@300baud.de> Subject: Re: wordlist - same letters Date: Mon, 2 Dec 2019 17:56:19 +0100 From: Stefan Claas <sac@300baud.de> References: <slrnqr1fv0.5d9.elvis-85650@notatla.org.uk> <slrnqr1hpc.5r5.elvis-85650@notatla.org.uk> <20191201145826.00005705@300baud.de> <slrnqu8lvh.p9l.elvis-85781@notatla.org.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: alt.privacy.anon-server Organization: A noiseless patient Spider Lines: 94 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cancel-Lock: sha1:hDePY/w8UaTS+RllvaX9m3h3vSY= X-Newsreader: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-w64-mingw32)