Mercurial > repo
comparison bin/? @ 9407:426a317d6dfe
<oerjan> ` mkx "`before \'bin/?\'`"
author | HackBot |
---|---|
date | Sun, 23 Oct 2016 03:52:52 +0000 |
parents | 4f32313b94d9 |
children | 5aa89f714ea0 |
comparison
equal
deleted
inserted
replaced
9406:2e880f97802d | 9407:426a317d6dfe |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//;s,\(\(..\?\)\?/\)*,,") | 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") |
3 topic1=$(echo "$topic" | sed "s/s$//") | 3 topic1=$(echo "$topic" | sed "s/s$//") |
4 cd wisdom | 4 cd wisdom |
5 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; | 5 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; |
6 then cat /dev/urandom; | 6 then cat /dev/urandom; |
7 elif [ -e "$topic" ]; | 7 elif [ -e "$topic" ]; |
8 then cat "$topic" | rnooodl; | 8 then cat "$topic" | rnooodl; |
9 elif [ -e "$topic1" ]; | 9 elif [ -e "$topic1" ]; |
10 then cat "$topic1" | rnooodl; | 10 then cat "$topic1" | rnooodl; |
11 else echo "$1? ¯\(°_o)/¯"; exit 1; | 11 else echo "$1? ¯\(°_o)/¯"; exit 1; |
12 fi | 12 fi |
13 |