view bin/learn @ 5170:475dd0e1fb59

<shachaf> ` ln -s dontaskdonttelllist bin/don\\\'taskdon\\\'ttelllist
author HackBot
date Wed, 26 Nov 2014 23:40:51 +0000
parents 1fb4c1cc0fb9
children 23da73664984
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
echo "$1" >"wisdom/$topic"
echo "Learned '$topic': $1"