Mercurial > repo
annotate bin/? @ 1921:499090b72bec
<oerjan> mv wisdom/tanebventions wisdom/tanebvention
author | HackBot |
---|---|
date | Thu, 31 Jan 2013 20:41:57 +0000 |
parents | 5ec896dab821 |
children | 1c1429d055bc |
rev | line source |
---|---|
0 | 1 #!/bin/sh |
1887
5ee72dd18ad5
<Jafet> sed -ie \'2 s,$, | tr A-Z a-z | sed "s/ *$//"),\' bin/\\?
HackBot
parents:
1886
diff
changeset
|
2 topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") |
1844
dbc93d96b539
<oerjan> sed -i -e \'3d\' -e \'4acd wisdom\' bin/\'?\'
HackBot
parents:
1843
diff
changeset
|
3 topic1=$(echo "$topic" | sed "s/s$//") |
1841
815fbe2140e3
<oerjan> sed -i -e \'2acd wisdom\' -e \'s/wisdom\\///\' bin/\'?\'
HackBot
parents:
1840
diff
changeset
|
4 cd wisdom |
815fbe2140e3
<oerjan> sed -i -e \'2acd wisdom\' -e \'s/wisdom\\///\' bin/\'?\'
HackBot
parents:
1840
diff
changeset
|
5 if [ \( "$topic" = "ngevd" \) -a \( -e ngevd \) ]; |
1906 | 6 then cat /dev/urandom; |
1841
815fbe2140e3
<oerjan> sed -i -e \'2acd wisdom\' -e \'s/wisdom\\///\' bin/\'?\'
HackBot
parents:
1840
diff
changeset
|
7 elif [ -e "$topic" ]; |
815fbe2140e3
<oerjan> sed -i -e \'2acd wisdom\' -e \'s/wisdom\\///\' bin/\'?\'
HackBot
parents:
1840
diff
changeset
|
8 then cat "$topic"; |
815fbe2140e3
<oerjan> sed -i -e \'2acd wisdom\' -e \'s/wisdom\\///\' bin/\'?\'
HackBot
parents:
1840
diff
changeset
|
9 elif [ -e "$topic1" ]; |
815fbe2140e3
<oerjan> sed -i -e \'2acd wisdom\' -e \'s/wisdom\\///\' bin/\'?\'
HackBot
parents:
1840
diff
changeset
|
10 then cat "$topic1"; |
1828 | 11 else echo "$1? ¯\(°_o)/¯"; exit 1; |
12 fi | |
1826 | 13 |