diff --git a/find_wordle/wordle.sh b/find_wordle/wordle.sh new file mode 100755 index 0000000..2d4c717 --- /dev/null +++ b/find_wordle/wordle.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# fanta +# Helper script to find words in the spanish worlde version +wordList="words-es.txt" + +function showError(){ + echo "[Error] $1" +} + +if [ -z "$1" ]; then + showError "Example: wordle.sh n..io (The dots are the unknown characters)" +else + if [ $(echo -n "$1" | wc -m) -le 5 ]; then + grep -iEw "$1" $wordList + # la salida tendria que ser de palabras solamente con 5 caracteres + else + showError "Too many characters my friend. They must be 5" + fi +fi diff --git a/find_wordle/words-es.txt b/find_wordle/words-es.txt new file mode 100644 index 0000000..ca9819d --- /dev/null +++ b/find_wordle/words-es.txt @@ -0,0 +1,56064 @@ + +# +# con este listado. Si no es así, visite