comparison bin/slashlearn @ 5010:e281f5947a6a

<shachaf> ` echo $\'#!/bin/bash\\ntopic=$(echo "$1" | lowercase | cut -d / -f 1)\\n[ -z "$topic" ] && exit 1\\nvalue=$(echo "$1" | cut -d / -f 2-)\\necho "$value" > wisdom/"$topic" && echo "Learned \xc2\xab$topic\xc2\xbb"\' > bin/slashlearn
author HackBot
date Thu, 02 Oct 2014 04:20:56 +0000
parents
children 9c7426991c5f 9c603f748542
comparison
equal deleted inserted replaced
5009:75a32204c931 5010:e281f5947a6a
1 #!/bin/bash
2 topic=$(echo "$1" | lowercase | cut -d / -f 1)
3 [ -z "$topic" ] && exit 1
4 value=$(echo "$1" | cut -d / -f 2-)
5 echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"