Mercurial > repo
comparison bin/? @ 10258:4506d2db5d56
<oerjan> revert
author | HackBot |
---|---|
date | Wed, 15 Feb 2017 01:21:17 +0000 |
parents | b727e7b800f7 |
children | cc2a8bbb4738 |
comparison
equal
deleted
inserted
replaced
10257:b727e7b800f7 | 10258:4506d2db5d56 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") | 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") |
3 topic1=$(echo '`'"$topic" | sed 's/^``//') | 3 topic1=$(echo '`'"$topic" | sed 's/^``//') |
4 topic2=$(echo "$topic" | sed "s/s$//") | 4 topic1=$(echo "$topic" | sed "s/s$//") |
5 cd wisdom | 5 cd wisdom |
6 if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; | 6 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; |
7 then cat /dev/urandom; | 7 then cat /dev/urandom; |
8 elif [ -e "$topic" ]; | 8 elif [ -e "$topic" ]; |
9 elif [ -e "$topic1" ]; | |
10 then cat "$topic"; | 9 then cat "$topic"; |
11 elif [ -e "$topic2" ]; | 10 elif [ -e "$topic1" ]; |
12 then cat "$topic2"; | 11 then cat "$topic1"; |
13 else echo "$1? ¯\(°_o)/¯"; exit 1; | 12 else echo "$1? ¯\(°_o)/¯"; exit 1; |
14 fi | rnooodl | 13 fi | rnooodl |