-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: markov
action: blob
revision:
path_from: markov.sh
revision_from: refs/heads/trunk:
path_to:
revision_to:

git.thebackupbox.net

markov

git://git.thebackupbox.net/markov

blob of:

markov

/ markov.sh

refs/heads/trunk:/markov.sh
 #!/bin/sh
 markov=ted.markov
 word1=$(shuf $markov | head -n1 | cut '-d ' -f1)
 #word=$1

 while [ "$word1" != '.' ];do
   word2="$(grep "^${word1} " $markov | shuf | head -n1 | cut '-d ' -f2)"
   printf "%s" "$word1"
   word1=$word2
   if [ ! "$word2" -o "$word1" = "." ];then
     printf "\n"
     exit
   else
     printf " "
   fi
 done

-- Response ended

-- Page fetched on Sun Jun 2 14:52:28 2024