Mercurial > repo
annotate bin/q @ 1763:bff28a744c14
<Jafet> chmod +x bin/q
author | HackBot |
---|---|
date | Fri, 25 Jan 2013 13:14:26 +0000 |
parents | ac79507c118d |
children | 88a36ee9de1f |
rev | line source |
---|---|
1762
ac79507c118d
<Jafet> echo -e \'#!/bin/sh\\ntopic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")\\n([ "$topic" = "ngevd" && -e wisdom/ngevd ] && cat /dev/urandom; exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? \xc2\xaf\\(\xc2\xb0_o)/\xc2\xaf"; exit 1; }\\ncat "wisdom/$topic"\' > bin/q
HackBot
parents:
diff
changeset
|
1 #!/bin/sh |
ac79507c118d
<Jafet> echo -e \'#!/bin/sh\\ntopic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")\\n([ "$topic" = "ngevd" && -e wisdom/ngevd ] && cat /dev/urandom; exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? \xc2\xaf\\(\xc2\xb0_o)/\xc2\xaf"; exit 1; }\\ncat "wisdom/$topic"\' > bin/q
HackBot
parents:
diff
changeset
|
2 topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") |
ac79507c118d
<Jafet> echo -e \'#!/bin/sh\\ntopic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")\\n([ "$topic" = "ngevd" && -e wisdom/ngevd ] && cat /dev/urandom; exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? \xc2\xaf\\(\xc2\xb0_o)/\xc2\xaf"; exit 1; }\\ncat "wisdom/$topic"\' > bin/q
HackBot
parents:
diff
changeset
|
3 ([ "$topic" = "ngevd" && -e wisdom/ngevd ] && cat /dev/urandom; exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; } |
ac79507c118d
<Jafet> echo -e \'#!/bin/sh\\ntopic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")\\n([ "$topic" = "ngevd" && -e wisdom/ngevd ] && cat /dev/urandom; exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? \xc2\xaf\\(\xc2\xb0_o)/\xc2\xaf"; exit 1; }\\ncat "wisdom/$topic"\' > bin/q
HackBot
parents:
diff
changeset
|
4 cat "wisdom/$topic" |