annotate bin/learn @ 3807:c9baee562cf2

<Taneb> learn list is a fun program that HackEgo has! Run it with `list and join the fun!
author HackBot
date Thu, 19 Sep 2013 19:36:48 +0000
parents 761f0d451a32
children 74a3ab67cd2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3565
28248d71128f <oerjan> sed -i \'1s/sh/bash/\' bin/learn
HackBot
parents: 3564
diff changeset
1 #!/bin/bash
3568
761f0d451a32 <oerjan> sed -i \'s/ -E//\' bin/learn
HackBot
parents: 3565
diff changeset
2 topic=$(echo "$1" | sed 's/ .*//' | lowercase)
761f0d451a32 <oerjan> sed -i \'s/ -E//\' bin/learn
HackBot
parents: 3565
diff changeset
3 info=$(echo "$1" | sed 's/[^ ]* //')
761f0d451a32 <oerjan> sed -i \'s/ -E//\' bin/learn
HackBot
parents: 3565
diff changeset
4 echo "$1" >"wisdom/$topic"
761f0d451a32 <oerjan> sed -i \'s/ -E//\' bin/learn
HackBot
parents: 3565
diff changeset
5 echo "I knew that."
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
6