view bin/learn @ 6077:95fa8ec1e331

<ais523> asm lea 0x1234, %al
author HackBot
date Fri, 16 Oct 2015 23:44:30 +0000
parents 1fb4c1cc0fb9
children 23da73664984
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"