squelette

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

commit f6f9874c0cb6fa6dea8d475ba557f733d1ae5363
parent 9429de71d40dd3293eaa6e3e2e631fc936822bf4
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun,  6 Sep 2015 00:24:16 +0200

rename

Diffstat:
makegame.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/makegame.sh b/makegame.sh @@ -9,18 +9,18 @@ cp ../main.css . htmlredirect "$CODE" > index.html while read l do - PREFIX=$(echo "$l" | awk '{ print $2 }') + SUFFIX=$(echo "$l" | awk '{ print $2 }') GENDER=$(echo "$l" | awk '{ print $1 }') GCODE=$(echo "$GENDER" | cut -b 1) mkdir -p $CODE cd $CODE python -m markdown -x markdown.extensions.toc ../../template.md | cat ../../head - ../../foot | - sed "s/NUM/$NUM/;s/GENDER/$GENDER/;s/PREFIX/$PREFIX/g" \ + sed "s/NUM/$NUM/;s/GENDER/$GENDER/;s/SUFFIX/$SUFFIX/g" \ > index.html CODE=$(pwgen 16 1) NUM=$(($NUM+1)) - grep "$PREFIX\s[fm]" ../../noms_all | grep "\s$GCODE\s" | cut -f 1 | + grep "$SUFFIX\s[fm]" ../../noms_all | grep "\s$GCODE\s" | cut -f 1 | while read ll do htmlredirect "../$CODE" > ${ll}.html