view bin/? @ 1599:d4535cf1d640

<c00kiemon5ter> printf \'%s\\n\' \'#!/bin/sh\' \'ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: <$1>" \'\\\'\'$0 ~ s{x=$0} END{if(!x) exit 1; print x}\'\\\'\' "$file" && break; done\' >bin/seen
author HackBot
date Tue, 22 Jan 2013 01:01:10 +0000
parents c091565553db
children 297d792c55c4
line wrap: on
line source

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