markov is cool
This commit is contained in:
parent
af2c75d070
commit
0986937fcc
1 changed files with 15 additions and 0 deletions
15
bin/mark
Executable file
15
bin/mark
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
grep -l "$1" ~/.local/share/catgirl/log/*/*/* | shuf -n 30 | tr "\n" " " | xargs cat | grep '>' > /tmp/markylol
|
||||
|
||||
nextword(){ awk '{for (I=1;I<=NF;I++) if ($I == "'$1'") {print $(I+1)};}' /tmp/markylol | sed '/^$/d' | shuf -n 1 ; }
|
||||
|
||||
|
||||
PASTWORD=$1
|
||||
|
||||
makesent(){ printf "%b " "$PASTWORD" ; PASTWORD=`nextword $PASTWORD | tr '"' "'"` ; [ -z "$PASTWORD" ] || makesent ; }
|
||||
|
||||
makesent
|
||||
|
||||
echo
|
||||
|
Loading…
Reference in a new issue