view bin/learn @ 7118:d6b3e9255be2

<zgrep> fetch google.com
author HackBot
date Sun, 06 Mar 2016 00:52:23 +0000
parents d4aebeacae03
children efa261b3fed0
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//')
echo "$1" >"wisdom/$topic"
echo "Learned '$topic': $1"