Mercurial > repo
annotate bin/learn @ 5040:66fb0dc90cb9
<oerjan> sed -i \'4c\\echo "Learned \'"\'"\'$topic\'"\'"\': $1"\' bin/learn
author | HackBot |
---|---|
date | Fri, 10 Oct 2014 11:28:33 +0000 |
parents | b3b11a73cd92 |
children |
rev | line source |
---|---|
4798 | 1 #!/bin/bash |
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') | |
3 echo "$1" >"wisdom/$topic" | |
5040
66fb0dc90cb9
<oerjan> sed -i \'4c\\echo "Learned \'"\'"\'$topic\'"\'"\': $1"\' bin/learn
HackBot
parents:
4798
diff
changeset
|
4 echo "Learned '$topic': $1" |
4798 | 5 |