view bin/slashlearn @ 5673:bbdc837c285e

<FireFly> ` echo $\'#!/bin/sh\\nsed -re "y/aehiotuwxyAEIOUY/\xc3\xa4\xc3\xab\xe1\xb8\xa7\xc3\xaf\xc3\xb6\xe1\xba\x97\xc3\xbc\xe1\xba\x85\xe1\xba\x8d\xc3\xbf\xc3\x84\xc3\x8b\xc3\x8f\xc3\x96\xc3\x9c\xc5\xb8/"\' >bin/d\xc3\xb6ts && chmod a+x bin/d\xc3\xb6ts && wisdom | d\xc3\xb6ts
author HackBot
date Wed, 24 Jun 2015 14:31:14 +0000
parents e281f5947a6a
children 9c7426991c5f 9c603f748542
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»"