Mercurial > repo
view bin/learn @ 4175:3f52a230f962
<oerjan> sed -i \'2s!sed.*!sed \'\\\'\'s/^\\\\(a|the\\\\) //;s/[Ss]\\? .*//\'\\\'\')!\' bin/learn
author | HackBot |
---|---|
date | Wed, 11 Dec 2013 01:21:46 +0000 |
parents | 4931255234a2 |
children | f2f2e475c347 |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(a|the\) //;s/[Ss]? .*//') info=$(echo "$1" | sed 's/[^ ]* //') echo "$1" >"wisdom/$topic" echo "I knew that."