view bin/slashlearn @ 5345:3972035a019e

<oerjan> ` mv bin/{welcome13,jrypbzr}
author HackBot
date Mon, 04 May 2015 22:18:19 +0000
parents 7a75388fddf0
children
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | cut -d / -f 1)
[ -z "$topic" ] && exit 1
value=$(echo "$1" | cut -d / -f 2-)
echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"