From 6328be52f7bd364d270df0499c311979987966bd Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 17 Jan 2022 14:09:43 +0100 Subject: [PATCH] Bug fix --- prog2/wordle/thing.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/prog2/wordle/thing.sh b/prog2/wordle/thing.sh index f4c03a5..6bf0c83 100755 --- a/prog2/wordle/thing.sh +++ b/prog2/wordle/thing.sh @@ -3,9 +3,6 @@ words=/usr/share/dict/words thing=$(ruby calc.rb $1 $2) - -echo $thing fivewords=$(cat $words | awk '{print tolower($0)}' | grep -E '^[[:alpha:]]{5}$') -echo $fivewords -#| grep -E '\b${thing}' +echo $fivewords | sed 's/ /\n/g' | grep -E "^${thing}"