Mercurial > repo
view bin/learn_append @ 7449:1c3c4b1a93e5
<b_jonas> learn Church invented a sane model of computation, but Turing was better with marketing, so now people define theoretical computer science using obsolate hardware like tape recorders.
author | HackBot |
---|---|
date | Sun, 17 Apr 2016 22:22:41 +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"