view bin/learn @ 2383:1f455af23894

<Jafet> (echo \'#!/bin/sh\'; echo \'if [ $# -ne 0 ]; then for f in "$@"; do echo "#!/bin/cat" && cat "$f"; done; else echo "#!/bin/cat" && cat; fi\') > bin/makequine && chmod +x bin/makequine
author HackBot
date Wed, 06 Mar 2013 14:46:16 +0000
parents e037173e0012
children 231ca1c36641
line wrap: on
line source

#!/bin/sh
topic=$(echo "$1" | sed 's/ .*//' | tr A-Z a-z)
info=$(echo "$1" | sed 's/[^ ]* //')
echo "$1" >"wisdom/$topic"
echo "I knew that."