annotate bin/learn @ 5823:3110c18b0f45

<shachaf> learn_append lions blah blah blah
author HackBot
date Fri, 10 Jul 2015 20:50:31 +0000
parents 1fb4c1cc0fb9
children 23da73664984
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5043
1fb4c1cc0fb9 <oerjan> revert
HackBot
parents:
diff changeset
1 #!/bin/bash
1fb4c1cc0fb9 <oerjan> revert
HackBot
parents:
diff changeset
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
1fb4c1cc0fb9 <oerjan> revert
HackBot
parents:
diff changeset
3 echo "$1" >"wisdom/$topic"
1fb4c1cc0fb9 <oerjan> revert
HackBot
parents:
diff changeset
4 echo "Learned '$topic': $1"
1fb4c1cc0fb9 <oerjan> revert
HackBot
parents:
diff changeset
5