Mercurial > repo
annotate 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 |
rev | line source |
---|---|
9075 | 1 #!/bin/bash |
9407 | 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") |
10256
d0d5bc896d19
<oerjan> sled bin/?//3itopic1=$(echo \'`\'"$topic" | sed \'s/^``//\')
HackBot
parents:
10255
diff
changeset
|
3 topic1=$(echo '`'"$topic" | sed 's/^``//') |
10257
b727e7b800f7
<oerjan> sled bin/?//4,$s/topic1/topic2/;9ielif [ -e "$topic1" ];
HackBot
parents:
10256
diff
changeset
|
4 topic2=$(echo "$topic" | sed "s/s$//") |
9075 | 5 cd wisdom |
10257
b727e7b800f7
<oerjan> sled bin/?//4,$s/topic1/topic2/;9ielif [ -e "$topic1" ];
HackBot
parents:
10256
diff
changeset
|
6 if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; |
9075 | 7 then cat /dev/urandom; |
8 elif [ -e "$topic" ]; | |
10257
b727e7b800f7
<oerjan> sled bin/?//4,$s/topic1/topic2/;9ielif [ -e "$topic1" ];
HackBot
parents:
10256
diff
changeset
|
9 elif [ -e "$topic1" ]; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
10 then cat "$topic"; |
10257
b727e7b800f7
<oerjan> sled bin/?//4,$s/topic1/topic2/;9ielif [ -e "$topic1" ];
HackBot
parents:
10256
diff
changeset
|
11 elif [ -e "$topic2" ]; |
b727e7b800f7
<oerjan> sled bin/?//4,$s/topic1/topic2/;9ielif [ -e "$topic1" ];
HackBot
parents:
10256
diff
changeset
|
12 then cat "$topic2"; |
10253 | 13 else echo "$1? ¯\(°_o)/¯"; exit 1; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
14 fi | rnooodl |