annotate bin/learn_append2 @ 10509:2b7ce722bfa2

<wob_jonas> `` >bin/starwars echo $\'#!perl\\n\'\'@c=split/\\|/,"M0|M1|M2";print$c[rand@c],"\\n";\' && chmod -c a+x bin/starwars
author HackBot
date Sun, 26 Mar 2017 01:56:33 +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."