view bin/? @ 10302:d59c7752952e

<boily> learn An erkin is a sort of small ickle, popular in Stern Urope.
author HackBot
date Fri, 17 Feb 2017 00:06:09 +0000
parents 5a436877bd42
children 4d09ce3dbd12
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//")
topic1=$(echo '`'"$topic" | sed 's/^``//')
topic2=$(echo "$topic" | sed "s/s$//")
cd wisdom
if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ];
    then cat /dev/urandom;
    elif [ -e "$topic" ];
    then cat "$topic";
    elif [ -e "$topic1" ];
    then cat "$topic1";
    elif [ -e "$topic2" ];
    then cat "$topic2";
    else echo "$1? ¯\(°​_o)/¯"; exit 1;
fi | rnooodl