annotate bin/learn_append @ 4874:fc834b7464f9

<mroman_> mv raw.txt bin/learn_append
author HackBot
date Fri, 26 Sep 2014 13:24:14 +0000
parents raw.txt@82435183814a
children 9a96610fa83b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4873
82435183814a <mroman_> fetch http://codepad.org/PW0O3FBY/raw.txt
HackBot
parents:
diff changeset
1 #!/bin/bash
82435183814a <mroman_> fetch http://codepad.org/PW0O3FBY/raw.txt
HackBot
parents:
diff changeset
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
82435183814a <mroman_> fetch http://codepad.org/PW0O3FBY/raw.txt
HackBot
parents:
diff changeset
3 echo "$1" >>"wisdom/$topic"
82435183814a <mroman_> fetch http://codepad.org/PW0O3FBY/raw.txt
HackBot
parents:
diff changeset
4 echo "I knew that."