view bin/? @ 11197:b0349228072c

<int-e> addquote <fungot> shachaf: i\'ve a long road ahead of me, it would be flattering. dudes got to act in accordance with my final wishes! they\'re the last things i ever did wish, and that makes me very sad to me!
author HackBot
date Tue, 26 Sep 2017 10:40:10 +0000
parents c41d527b33a0
children a5c372384510
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