Mercurial > repo
annotate bin/learn @ 4206:ab660bc578b5
<kmc> printf \'#!/bin/sh\\n\\nexec quote fungot\' > bin/qungot && chmod +x bin/qungot
author | HackBot |
---|---|
date | Thu, 19 Dec 2013 21:07:29 +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 |