Mercurial > repo
annotate bin/? @ 3047:7b6fcefc7207
<oerjan> learn ` is the prefix to greatness.
author | HackBot |
---|---|
date | Wed, 05 Jun 2013 17:31:08 +0000 |
parents | a20360ccb4cd |
children | bc37b2b9cc23 |
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" ]; | |
2915 | 8 then cat "$topic" | rnooodl; |
2114 | 9 elif [ -e "$topic1" ]; |
2915 | 10 then cat "$topic1" | rnooodl; |
2114 | 11 else echo "$1? ¯\(°_o)/¯"; exit 1; |
12 fi | |
1826 | 13 |