view paste/paste.26175 @ 2034:cfec38aa6769

<elliott> echo "#!/bin/sh" >bin/list; echo \'cd /var/irclogs/_esoteric; name=$(cat $(ls ????-??-??.txt | tail -1) | tail -1 | sed "s/[^<]*<//; s/>.*//"); sed -i "s/.\\$nam[e]./$name \\&" bin/list; echo "$name"\' >>bin/list
author HackBot
date Thu, 07 Feb 2013 21:40:16 +0000
parents e037173e0012
children
line wrap: on
line source

#!/bin/sh
topic=$(echo "$1" | tr A-Z a-z)
[ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; }
cat "wisdom/$topic"