annotate bin/learn_append2 @ 5582:03ab4bf21ad7

<shachaf> le/rn newline/Newlines are le/rn\'s \\ biggest weakness.
author HackBot
date Mon, 15 Jun 2015 21:17:07 +0000
parents c37b8874cc48
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4884
c37b8874cc48 <mroman_> sed -e \'s/^M//g\' bin/learn_append > bin/learn_append2
HackBot
parents: 4883
diff changeset
1 #!/bin/bash
c37b8874cc48 <mroman_> sed -e \'s/^M//g\' bin/learn_append > bin/learn_append2
HackBot
parents: 4883
diff changeset
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
c37b8874cc48 <mroman_> sed -e \'s/^M//g\' bin/learn_append > bin/learn_append2
HackBot
parents: 4883
diff changeset
3 echo "$1" >>"wisdom/$topic"
c37b8874cc48 <mroman_> sed -e \'s/^M//g\' bin/learn_append > bin/learn_append2
HackBot
parents: 4883
diff changeset
4 echo "I knew that."