view bin/? @ 4286:1e110f9d6e37

<oerjan> revert
author HackBot
date Tue, 14 Jan 2014 00:55:44 +0000
parents 5c5fc08f8113
children 42ab57044a8e
line wrap: on
line source

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