annotate bin/learn_append2 @ 7281:e7c026970ad2

<oerjan> learn HTML is short for "hope this mess loads".
author HackBot
date Fri, 25 Mar 2016 23:43:52 +0000
parents 56dcce63901b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5643
56dcce63901b <tswett> revert
HackBot
parents:
diff changeset
1 #!/bin/bash
56dcce63901b <tswett> revert
HackBot
parents:
diff changeset
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
56dcce63901b <tswett> revert
HackBot
parents:
diff changeset
3 echo "$1" >>"wisdom/$topic"
56dcce63901b <tswett> revert
HackBot
parents:
diff changeset
4 echo "I knew that."