Mercurial > repo
comparison bin/learn @ 6144:c20d4be5afa6
<oerjan> ` sed -i \'s/[?] /?[,.!?]\\\\? /\' bin/learn
author | HackBot |
---|---|
date | Mon, 26 Oct 2015 04:58:14 +0000 |
parents | 3ba33322fa81 |
children | d4aebeacae03 |
comparison
equal
deleted
inserted
replaced
6143:3ba33322fa81 | 6144:c20d4be5afa6 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') | 2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[,.!?]\? .*//') |
3 echo "$1" >"wisdom/$topic" | 3 echo "$1" >"wisdom/$topic" |
4 echo "Learned '$topic': $1" | 4 echo "Learned '$topic': $1" |
5 | 5 |