comparison bin/learn @ 6147:d4aebeacae03

<oerjan> ` sed -i \'s/[[]/[:;/\' bin/learn
author HackBot
date Mon, 26 Oct 2015 05:00:10 +0000
parents c20d4be5afa6
children efa261b3fed0
comparison
equal deleted inserted replaced
6146:4334885722c8 6147:d4aebeacae03
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