annotate bin/mislearn @ 9047:dfc5682ee287

<fizzie> ` sed -i -e \'s/{/if [ -n "$f" ]; then/;s/} |/else echo "that\'\\\'\'s not wise"; fi |/\' bin/wisdom
author HackBot
date Fri, 16 Sep 2016 22:47:19 +0000
parents 061734ba3033
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6774
5b339aa9cd79 <hppavilion[1]> ` cp bin/learn bin/mislearn
HackBot
parents:
diff changeset
1 #!/bin/bash
5b339aa9cd79 <hppavilion[1]> ` cp bin/learn bin/mislearn
HackBot
parents:
diff changeset
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//')
6777
d4e5edb3022f <hppavilion[1]> ` sed -i "s/wisdom/tmflry/" bin/mislearn
HackBot
parents: 6774
diff changeset
3 echo "$1" >"tmflry/$topic"
6778
061734ba3033 <hppavilion[1]> ` sed -i "s/Learned/Was lied to about/" bin/mislearn
HackBot
parents: 6777
diff changeset
4 echo "Was lied to about '$topic': $1"
6774
5b339aa9cd79 <hppavilion[1]> ` cp bin/learn bin/mislearn
HackBot
parents:
diff changeset
5