Mercurial > repo
annotate bin/? @ 9179:4f32313b94d9
<oerjan> sled bin/?//2s!"[)]!;s,\\\\(\\\\(..\\\\?\\\\)\\\\?/\\\\)*,,")!
author | HackBot |
---|---|
date | Thu, 06 Oct 2016 00:09:50 +0000 |
parents | 4a7dd09919f1 |
children | 426a317d6dfe |
rev | line source |
---|---|
9075 | 1 #!/bin/bash |
9179
4f32313b94d9
<oerjan> sled bin/?//2s!"[)]!;s,\\\\(\\\\(..\\\\?\\\\)\\\\?/\\\\)*,,")!
HackBot
parents:
9178
diff
changeset
|
2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//;s,\(\(..\?\)\?/\)*,,") |
9075 | 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 |