Mercurial > repo
annotate bin/? @ 10091:5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
author | HackBot |
---|---|
date | Tue, 03 Jan 2017 03:18:32 +0000 |
parents | 426a317d6dfe |
children | 1ae58eb53daf |
rev | line source |
---|---|
9075 | 1 #!/bin/bash |
9407 | 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;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" ]; | |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
8 then cat "$topic"; |
9075 | 9 elif [ -e "$topic1" ]; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
10 then cat "$topic1"; |
9075 | 11 else echo "$1? ¯\(°_o)/¯"; exit 1; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
12 fi | rnooodl |