Mercurial > repo
comparison bin/learn @ 4157:c3fa67f8b8a1
<oerjan> revert
author | HackBot |
---|---|
date | Tue, 10 Dec 2013 17:32:43 +0000 |
parents | 74a3ab67cd2c |
children | cab85627f05c |
comparison
equal
deleted
inserted
replaced
4156:74a3ab67cd2c | 4157:c3fa67f8b8a1 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 topic=$(echo "$1" | sed 's/s? .*//' | lowercase) | 2 topic=$(echo "$1" | sed 's/ .*//' | lowercase) |
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 |