Mercurial > repo
comparison bin/learn @ 4174:4931255234a2
<oerjan> revert
author | HackBot |
---|---|
date | Wed, 11 Dec 2013 01:21:31 +0000 |
parents | 88d05b052b66 |
children | 3f52a230f962 |
comparison
equal
deleted
inserted
replaced
4173:88d05b052b66 | 4174:4931255234a2 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 topic=$(echo "$1" | lowercase | sed 's/^`\(a|the\) //;s/[Ss]? .*//') | 2 topic=$(echo "$1" | lowercase | sed 's/^(a|the) //;s/[Ss]? .*//') |
3 info=$(echo "$1" | sed 's/[^ ]* //') | 3 info=$(echo "$1" | sed 's/[^ ]* //') |
4 echo "$1" >"wisdom/$topic" | 4 echo "$1" >"wisdom/$topic" |
5 echo "I knew that." | 5 echo "I knew that." |
6 | 6 |