view bin/? @ 1865:6ebe1af9485a

<Jafet> sed -ie \'s/$/ monqy/\' bin/list
author HackBot
date Sun, 27 Jan 2013 04:25:08 +0000
parents dbc93d96b539
children 2355c0160b25
line wrap: on
line source

#!/bin/sh
topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")
topic1=$(echo "$topic" | sed "s/s$//")
cd wisdom
if [ \( "$topic" = "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