comparison bin/? @ 10257:b727e7b800f7

<oerjan> sled bin/?//4,$s/topic1/topic2/;9ielif [ -e "$topic1" ];
author HackBot
date Wed, 15 Feb 2017 01:20:42 +0000
parents d0d5bc896d19
children 4506d2db5d56
comparison
equal deleted inserted replaced
10256:d0d5bc896d19 10257:b727e7b800f7
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 topic1=$(echo "$topic" | sed "s/s$//") 4 topic2=$(echo "$topic" | sed "s/s$//")
5 cd wisdom 5 cd wisdom
6 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; 6 if [ \( "_$topic2"_ = "_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" ];
9 then cat "$topic"; 10 then cat "$topic";
10 elif [ -e "$topic1" ]; 11 elif [ -e "$topic2" ];
11 then cat "$topic1"; 12 then cat "$topic2";
12 else echo "$1? ¯\(°​_o)/¯"; exit 1; 13 else echo "$1? ¯\(°​_o)/¯"; exit 1;
13 fi | rnooodl 14 fi | rnooodl