view bin/? @ 1840:84c0476f1345

<oerjan> sed -i \'s/ exit 0;//\' bin/\'?\'
author HackBot
date Sat, 26 Jan 2013 00:31:48 +0000
parents c07349799d0b
children 815fbe2140e3
line wrap: on
line source

#!/bin/sh
topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")
topic1=$(echo "$topic" | sed "s/s$//")
if [ \( "$topic" = "ngevd" \) -a \( -e wisdom/ngevd \) ];
    then cat /dev/urandom;
    elif [ -e "wisdom/$topic" ];
    then cat "wisdom/$topic";
    elif [ -e "wisdom/$topic1" ];
    then cat "wisdom/$topic1";
    else echo "$1? ¯\(°_o)/¯"; exit 1;
fi