-- Leo's gemini proxy

-- Connecting to gemini.mingmengtou.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

neil in gemini space

wordlist manipulation - 2021-04-01


these are here so that i don't have to remember them


extracting words of a length from a single column text file of words.


awk 'length($1) <= 7 {print}' dicepass/dicepass_wordlist.txt > dicepass/dicepass_wordlist_7orless.txt

get a word put it in a variable then get the length of the variable.


word=$(shuf -n1 dicepass/dicepass_wordlist.txt)
echo $word ${#word}

produce a file of the lower case letters a..z.


printf '%c\n' {a..z} > alphbet_lower.txt

use printf to output 0--9, a..z, A..Z, most symbols to a file.


printf '%b\n' {0..9} '\'{40..57} '\'{72..77} '\100' '\'{133..137} '\'{173..176} {a..z} {A..Z} | sort -u > passchars.txt

arrange alphabet file in three rows.


alphabet=$(head -n10 alphabet_lower.txt)
toprow=$(head -n10 alphabet_lower.txt)
middlerow=$(head -19 alphabet_lower.txt | tail -9)
bottomrow=$(tail -n7 alphabet_lower.txt)

---

return to gemini.mingmengtou.org index page.

---

neil.gemini@mingmengtou.org

content licensed CC-BY-SA 4.0 unless stated.

creative commons licence information.

-- Response ended

-- Page fetched on Thu May 2 05:51:54 2024