From d218b1b16e829889d917b99e1a9ba03eeccd297c Mon Sep 17 00:00:00 2001 From: fanta Date: Sun, 5 Jan 2025 20:00:07 +0100 Subject: [PATCH] trampas al wordle --- find_wordle/wordle.sh | 19 + find_wordle/words-es.txt | 56064 +++++++++++++++++++++++++++++++++++++ 2 files changed, 56083 insertions(+) create mode 100755 find_wordle/wordle.sh create mode 100644 find_wordle/words-es.txt 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