comparison bin/? @ 9075:c989a1669243

<fizzie> revert 58b9ee8f97a7
author HackBot
date Sun, 25 Sep 2016 20:31:46 +0000
parents
children 393748cfa9cc
comparison
equal deleted inserted replaced
9074:560a73f4f0a4 9075:c989a1669243
1 #!/bin/bash
2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//")
3 topic1=$(echo "$topic" | sed "s/s$//")
4 cd wisdom
5 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ];
6 then cat /dev/urandom;
7 elif [ -e "$topic" ];
8 then cat "$topic" | rnooodl;
9 elif [ -e "$topic1" ];
10 then cat "$topic1" | rnooodl;
11 else echo "$1? ¯\(°​_o)/¯"; exit 1;
12 fi
13