Mercurial > repo
annotate bin/learn @ 4266:a691a495ca0f
<Taneb> learn Arrows are just strong monads in the category of profunctors
author | HackBot |
---|---|
date | Mon, 06 Jan 2014 13:21:46 +0000 |
parents | e87d36fd991f |
children | 02be2e278897 |
rev | line source |
---|---|
3565 | 1 #!/bin/bash |
4203
e87d36fd991f
<oerjan> sed -i \'2s/?/\\\\?/\' bin/learn # missed one
HackBot
parents:
4201
diff
changeset
|
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') |
3568 | 3 info=$(echo "$1" | sed 's/[^ ]* //') |
4 echo "$1" >"wisdom/$topic" | |
5 echo "I knew that." | |
0 | 6 |