Mercurial > repo
view q.2 @ 1824:8c4f72925fb1
<oerjan> fetch http://oerjan.nvg.org/q
author | HackBot |
---|---|
date | Fri, 25 Jan 2013 21:11:15 +0000 |
parents | |
children |
line wrap: on
line source
#!/bin/sh topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") topic1=$(echo "$topic" | sed "s/s$//") ([ \( "$topic" = "ngevd" \) -a \( -e wisdom/ngevd \) ] && cat /dev/urandom && exit 0; ) || if [ -e "wisdom/$topic" ]; then cat "wisdom/$topic"; elif [ -e "wisdom/$topic1" ]; then cat "wisdom/$topic1"; else echo "$1? ��\(��_o)/��"; exit 1; fi