Mercurial > repo
annotate bin/? @ 10254:5a6e97c9566d
<oerjan> sled bin/?//3itopic1=$(echo \'`\'"$topic" | sed "s/^``//")
author | HackBot |
---|---|
date | Wed, 15 Feb 2017 01:16:34 +0000 |
parents | 6a354a197616 |
children | db3819cef2c2 |
rev | line source |
---|---|
9075 | 1 #!/bin/bash |
9407 | 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") |
10254
5a6e97c9566d
<oerjan> sled bin/?//3itopic1=$(echo \'`\'"$topic" | sed "s/^``//")
HackBot
parents:
10253
diff
changeset
|
3 topic1=$(echo '`'"$topic" | sed "s/^``//") |
9075 | 4 topic1=$(echo "$topic" | sed "s/s$//") |
5 cd wisdom | |
6 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; | |
7 then cat /dev/urandom; | |
8 elif [ -e "$topic" ]; | |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
9 then cat "$topic"; |
9075 | 10 elif [ -e "$topic1" ]; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
11 then cat "$topic1"; |
10253 | 12 else echo "$1? ¯\(°_o)/¯"; exit 1; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
13 fi | rnooodl |