-- 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: dict2mark.sh
revision_from: refs/heads/trunk:
path_to:
revision_to:

git.thebackupbox.net

markov

git://git.thebackupbox.net/markov

blob of:

markov

/ dict2mark.sh

refs/heads/trunk:/dict2mark.sh
 #!/bin/bash
 h="$(cat dict | sed 's/$/./g' | tr -d '\n' | fold -w1 | grep -c '.')"
 w=$[$h+1]
 cat dict \
   | sed 's/$/./g' \
   | tr -d '\n' \
   | xargs yes \
   | head -n $h \
   | tr -d '\n' \
   | fold -w $w \
   | cut -b1-2 \
   | sed 's/\(.\)\(.\)/\1 \2/g'

-- Response ended

-- Page fetched on Sun Jun 2 17:34:34 2024