Mercurial > repo
comparison bin/? @ 4531:7f957c1f4661
<oerjan> revert
author | HackBot |
---|---|
date | Sun, 16 Mar 2014 01:52:15 +0000 |
parents | 03afb1619ef2 |
children |
comparison
equal
deleted
inserted
replaced
4530:03afb1619ef2 | 4531:7f957c1f4661 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 topic=$(echo "$1" | tr A-Z a-z) | 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") |
3 [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; } | 3 topic1=$(echo "$topic" | sed "s/s$//") |
4 cat "wisdom/$topic" | 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 | |
5 | 13 |