L
Lius
any software that can determine the words that add up to 100 besides the
word "attitude" ?
word "attitude" ?
Lius said:any software that can determine the words that add up to 100 besides
the word "attitude" ?
123 said:Dunno, but if A=6, B=12, C=18, ... , then MARK OF BEAST adds up to 666,
as does BEASTLY CODE, WITCHCRAFT, SORCEROR, and some more. Also the same
formula makes JESUS add up to 444, as does CROSS, GOSPEL, PARABLES,
MESSIAH, HEAVENS, and some more. Co-incidence? I don't think so.
Lius said:why a=6,the logic? why not 9 or 7?
123 said:I used 6 so that MARK OF BEAST would add up to 666, which is logical.
Lius said:any software that can determine the words that add up to 100 besides the
word "attitude" ?
Lius said:why a=6,the logic? why not 9 or 7?
I used 6 so that MARK OF BEAST would add up to 666, which is logical.
I then discovered that this made JESUS etc add up to 444, which was
a bit of shock. I've run with it ever since.
If you want a more solid explanation, the Greeks said 6 is the first
"perfect number", and indeed PERFECTION adds up to 666 to support it,
but then that's probably at odds with what 666 is meant to represent.
Anthony said:Is this different to the Jewish thought of the number 7 being perfect
Would be a perfect job for a small Python script... and looks like a
wonderful exercise for beginners![]()
Just write a script that accepts a word list (text file) as input. The
script reads these words one at a time and calculates the sum of the
letters as you propose. If sum=100, write it to an output text file.
The only missing piece is an input file containing words. I'm sure you'll
find some dictionary files somewhere on the internet...
Loki said:Le Wed, 16 Mar 2005 12:46:18 +0000, Wald a écrit :
Yes, or awk for beginners, too ! crosspost started this post,
(feel free to block if inconvenient !)
For instance, with this little exemple as starting help (oneliner) :
$ echo "MARKOFBEAST" | awk 'BEGIN{RS=FS="";ii=1; tot=0} {while($ii){
indi=index("ABCDEFGHIJKLMNOPQRSTUVWXYZ",$ii);tot+=6*indi ; ii++} };
END{print"TOTAL="tot}' RS=''
Go on for the multi list script you describe here :
They're legion ;-)
Ed said:Loki said:Le Wed, 16 Mar 2005 12:46:18 +0000, Wald a écrit :
Yes, or awk for beginners, too ! crosspost started this post,
(feel free to block if inconvenient !)
For instance, with this little exemple as starting help (oneliner) :
$ echo "MARKOFBEAST" | awk 'BEGIN{RS=FS="";ii=1; tot=0} {while($ii){
indi=index("ABCDEFGHIJKLMNOPQRSTUVWXYZ",$ii);tot+=6*indi ; ii++} };
END{print"TOTAL="tot}' RS=''
Go on for the multi list script you describe here :
They're legion ;-)
Assuming you only care about upper and lower case letters (not digits,
punctuation, etc.):
awk -vRS="" '{t=$0}gsub("[[:alpha:]]","",t)==100' file
Yes, or awk for beginners, too ! crosspost started this post,(feel free to block if inconvenient !)
For instance, with this little exemple as starting help (oneliner) :
$ echo "MARKOFBEAST" | awk 'BEGIN{RS=FS="";ii=1; tot=0} {while($ii){
indi=index("ABCDEFGHIJKLMNOPQRSTUVWXYZ",$ii);tot+=6*indi ; ii++} };
END{print"TOTAL="tot}' RS=''
Go on for the multi list script you describe here :
They're legion ;-)
Assuming you only care about upper and lower case letters (not digits,
punctuation, etc.):
awk -vRS="" '{t=$0}gsub("[[:alpha:]]","",t)==100' file
Loki said:Le Tue, 22 Mar 2005 07:25:45 -0600, Ed Morton a écrit :
Yes, or awk for beginners, too ! crosspost started this post,
(feel free to block if inconvenient !)
For instance, with this little exemple as starting help (oneliner) :
$ echo "MARKOFBEAST" | awk 'BEGIN{RS=FS="";ii=1; tot=0} {while($ii){
indi=index("ABCDEFGHIJKLMNOPQRSTUVWXYZ",$ii);tot+=6*indi ; ii++} };
END{print"TOTAL="tot}' RS=''
Go on for the multi list script you describe here :
Just write a script that accepts a word list (text file) as input. The
script reads these words one at a time and calculates the sum of the
letters as you propose. If sum=100, write it to an output text file.
The only missing piece is an input file containing words. I'm sure you'll
find some dictionary files somewhere on the internet...
They're legion ;-)
Assuming you only care about upper and lower case letters (not digits,
punctuation, etc.):
awk -vRS="" '{t=$0}gsub("[[:alpha:]]","",t)==100' file
Mmm, nice try but I guess either you didn't read carefully enough
my post or my post was a bit shady !
I reformulate this :
1. being an arithmetic progression of 6
2. project this ari progression on the alphabet
thus giving
A=6
B=12
C=18, etc.
pick words or sentences, sum up the values according to
the defined ari progression.
for instance, like in my sample,
MARKOFBEAST gives 666 (as do PERFECTION or WITCHCRAFT
or giving 444 are JESUS, GOSPEL, MESSIAH, etc.
The script to write for fun (not for me ;-) is :
===>>
Have dictionnaries
Pick a value, for instance 666 or 100
List all words giving the picked value ...
<<===
Were I a bit clearer this time ?-D)
Loki said:Le Tue, 22 Mar 2005 07:25:45 -0600, Ed Morton a écrit :
Yes, or awk for beginners, too ! crosspost started this post,
For instance, with this little exemple as starting help (oneliner) :
$ echo "MARKOFBEAST" | awk 'BEGIN{RS=FS="";ii=1; tot=0} {while($ii){
indi=index("ABCDEFGHIJKLMNOPQRSTUVWXYZ",$ii);tot+=6*indi ; ii++} };
END{print"TOTAL="tot}' RS=''
Go on for the multi list script you describe here :
Just write a script that accepts a word list (text file) as input. The
script reads these words one at a time and calculates the sum of the
letters as you propose. If sum=100, write it to an output text file.
The only missing piece is an input file containing words. I'm sure you'll
find some dictionary files somewhere on the internet...
They're legion ;-)
Assuming you only care about upper and lower case letters (not digits,
punctuation, etc.):
awk -vRS="" '{t=$0}gsub("[[:alpha:]]","",t)==100' file
Mmm, nice try but I guess either you didn't read carefully enough
my post or my post was a bit shady !
I reformulate this :
1. being an arithmetic progression of 6
2. project this ari progression on the alphabet
thus giving
A=6
B=12
C=18, etc.
pick words or sentences, sum up the values according to
the defined ari progression.
for instance, like in my sample,
MARKOFBEAST gives 666 (as do PERFECTION or WITCHCRAFT
or giving 444 are JESUS, GOSPEL, MESSIAH, etc.
The script to write for fun (not for me ;-) is :
===>>
Have dictionnaries
Pick a value, for instance 666 or 100
List all words giving the picked value ...
<<===
Were I a bit clearer this time ?-D)
Yes, now I see why your posted example didn't seem to fit the text - I
just thought you had no idea what you were doing. Sorry 'bout that!
This
should do what you actually want (keeping as much of your example as
possible for easy comparison):
Like your original, it treats all non-blank characters that aren't
upper-case alphabetical as having zero value but still part of each
"word".
For efficiency, it'd be much better to build an associative array in a
BEGIN section that maps each letter to it's ari progression value, then
just index that by x[j] in the body rather than computing the index()
and the multiplication for ever single letter in the file, e.g.:
Ok, now a possible final script here, it's Ed's script with just a
line to eliminate the need to uppercase the wordlists given :
$ cat << _EOF_ >> AlittleWordGameInAwk
#!/bin/awk -f
BEGIN {
c = split("abcdefghijklmnopqrstuvwxyz",tmp,"")
split("ABCDEFGHIJKLMNOPQRSTUVWXYZ",TMP,"")
for (i=1; i<=c; i++)
{
map[tmp] = map[TMP] = i * ari
}
}
Loki said:for instance, like in my sample,
MARKOFBEAST gives 666 (as do PERFECTION or WITCHCRAFT
or giving 444 are JESUS, GOSPEL, MESSIAH, etc.
I think you mean *MY* sample, dude -- they were *MY* quotes.