view bin/? @ 7718:76f48bd3f800

<moon_> mkx bin/uristfail//echo urist was killed in a goblin seige attempting to retreive a spare sock #temportary
author HackBot
date Wed, 04 May 2016 00:41:09 +0000
parents f72b8824feb4
children
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;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