view bin/? @ 10256:d0d5bc896d19

<oerjan> sled bin/?//3itopic1=$(echo \'`\'"$topic" | sed \'s/^``//\')
author HackBot
date Wed, 15 Feb 2017 01:19:03 +0000
parents db3819cef2c2
children b727e7b800f7
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//")
topic1=$(echo '`'"$topic" | 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";
    elif [ -e "$topic1" ];
    then cat "$topic1";
    else echo "$1? ¯\(°​_o)/¯"; exit 1;
fi | rnooodl