Mercurial > repo
annotate bin/? @ 2787:0c53088295dd
<nooodl> ln -s /bin/echo bin/nooodl:
author | HackBot |
---|---|
date | Tue, 23 Apr 2013 17:44:19 +0000 |
parents | bb8aae82db7c |
children | a20360ccb4cd |
rev | line source |
---|---|
0 | 1 #!/bin/sh |
2716
bb8aae82db7c
<shachaf> sed -i \'s/tr A-Z a-z/lowercase/\' bin/\\?
HackBot
parents:
2676
diff
changeset
|
2 topic=$(echo "$1" | lowercase | sed "s/ *$//") |
2114 | 3 topic1=$(echo "$topic" | sed "s/s$//") |
4 cd wisdom | |
2676
ddbe0012f414
<oerjan> sed -i \'s/topic" =/topic1" =/\' bin/\'?\'
HackBot
parents:
2114
diff
changeset
|
5 if [ \( "$topic1" = "ngevd" \) -a \( -e ngevd \) ]; |
2114 | 6 then cat /dev/urandom; |
7 elif [ -e "$topic" ]; | |
8 then cat "$topic"; | |
9 elif [ -e "$topic1" ]; | |
10 then cat "$topic1"; | |
11 else echo "$1? ¯\(°_o)/¯"; exit 1; | |
12 fi | |
1826 | 13 |