annotate bin/learn_append2 @ 7976:2495dc482f39

<b_jonas> learn wisdom.pdf Nicely formatted wisdoms and quotes book at https://dl.dropboxusercontent.com/u/2023808/wisdom.pdf
author HackBot
date Sun, 08 May 2016 14:00:15 +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."