view bin/learn @ 7011:2cc255008bc3

<b_jonas> `` chmod 644 bin/culprits-ng
author HackBot
date Thu, 25 Feb 2016 07:26:43 +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"