Mercurial > repo
view bin/learn_append @ 6614:c5586c3cc22e
<int-e> le/rn precision/78.75211317% of the time precision is totally overrated.
author | HackBot |
---|---|
date | Fri, 29 Jan 2016 10:48:33 +0000 |
parents | 38b26e48d344 |
children |
line wrap: on
line source
#!/bin/bash topic="$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')" stuff=$(echo "$1" | cut -d' ' -f2-) perl -i -p -e 's/\n/ /' "wisdom/$topic" echo "$stuff" >>"wisdom/$topic" echo -n "Learned '$topic': " cat "wisdom/$topic"