view bin/? @ 10091:5aa89f714ea0

<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
author HackBot
date Tue, 03 Jan 2017 03:18:32 +0000
parents 426a317d6dfe
children 1ae58eb53daf
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";
    elif [ -e "$topic1" ];
    then cat "$topic1";
    else echo "$1? ¯\(°​_o)/¯"; exit 1;
fi | rnooodl