annotate bin/learn_append2 @ 11250:8bfab6d62735

<oerjan> learn The password of the month is equally offensive to all beliefs
author HackBot
date Fri, 01 Dec 2017 02:58:45 +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."