annotate bin/genbf @ 7137:59c9be91adcd

<oerjan> mkx bin/slashlearn//sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; [ -e "wisdom/$topic" ] && verb="Relearned" || verb="Learned"; echo "$value" > "$(echo-p "wisdom/$key")" && echo "$verb \xc2\xab$key\xc2\xbb"
author HackBot
date Sun, 06 Mar 2016 16:48:02 +0000
parents e357f21af6f2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6826
e357f21af6f2 <izabera> ` echo \'tr -dc "AB,.<>+-"</dev/urandom|fold -w"${1-50}"|sed -n ":a;s/A\\([^B]*\\)B/[\\1]/;ta;/[AB]/b;p;q"\' > bin/genbf; chmod +x bin/genbf
HackBot
parents:
diff changeset
1 tr -dc "AB,.<>+-"</dev/urandom|fold -w"${1-50}"|sed -n ":a;s/A\([^B]*\)B/[\1]/;ta;/[AB]/b;p;q"