squelette

find exceptional genders for a noun ending
git clone https://a3nm.net/git/squelette/
Log | Files | Refs | README

commit 98224d763260826392956684358c85b9cb61dece
parent 528ee128442bfc4c020048a43cbeb18c29cedb5f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat,  4 Nov 2023 19:01:08 -0700

generate solutions

Diffstat:
.gitignore | 1+
makegame.sh | 7++++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -8,3 +8,4 @@ texte liste game/** enigmes2 +enigmes2_with_solution diff --git a/makegame.sh b/makegame.sh @@ -4,6 +4,8 @@ set -x +touch enigmes2_with_solution +truncate -s 0 enigmes2_with_solution # make file empty cd game CODE=$(pwgen 16 1) NUM=1 @@ -13,6 +15,7 @@ while read l do SUFFIX=$(echo "$l" | awk '{ print $2 }') GENDER=$(echo "$l" | awk '{ print $1 }') + echo -n "$SUFFIX $GENDER" >> ../enigmes2_with_solution GCODE=$(echo "$GENDER" | cut -b 1) mkdir -p $CODE cd $CODE @@ -22,12 +25,14 @@ do > index.html CODE=$(pwgen 16 1) NUM=$(($NUM+1)) - grep "$SUFFIX\s[fm]" ../../noms_all | grep "\s$GCODE\s" | cut -f 1 | + grep "$SUFFIX\s[fm]" ../../noms_all | grep "\s$GCODE\s" | cut -f 1 | sort | while read ll do + echo -n " $ll" >> ../../enigmes2_with_solution htmlredirect "../$CODE" > ${ll}.html done cd .. + echo >> ../enigmes2_with_solution done mkdir -p $CODE cd $CODE