Commit 065c70ee by Fred Smith

xkcd password generator

parent 09de3abc
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
#! /usr/bin/env bash
xkcd()
{
word_len=$1
words=$2
word_len=${word_len:=10}
words=${words:=4}
shuf -n ${words} /Users/derf/bin/dict/xkcd-${word_len}.txt | tr '\n' ' '
echo
}
if [[ `basename -- $0` -eq "xkcdpp" ]]; then
xkcd $@
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment