Mercurial > repo
view bin/learn_append @ 4989:2840b8c573fd
<zui438s> echo false is true > wisdom/false
author | HackBot |
---|---|
date | Wed, 01 Oct 2014 22:39:41 +0000 |
parents | c4aabc33e0d5 |
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 "I knew that."