Mercurial > repo
view bin/learn @ 4952:c59c43efc84d
<oerjan> sed -i "4ised -i \'y/"\'\\\\n\'"/ /"\'wisdom/$topic\' bin/learn_append
author | HackBot |
---|---|
date | Tue, 30 Sep 2014 05:51:08 +0000 |
parents | b3b11a73cd92 |
children | 66fb0dc90cb9 |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') echo "$1" >"wisdom/$topic" echo "I knew that."