Mercurial > repo
annotate bin/? @ 11918:a51467a3be09 draft
<wob_jonas> learn can\'t is the most frequent word whose pronunciation varies between /\xc9\x91\xcb\x90/ and /\xc3\xa6/ depending on dialect. A list is: advance, advantage, after, answer, ask, aunt, branch, can\'t, cast, chance, class, craft, command, contrast, dance, demand, disaster, draft, enhance, example, fast, glass, glance, grant, graph, grass, half, last, laugh, mask, maste
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 29 Aug 2019 10:06:05 +0000 |
parents | b4efaadeace1 |
children | 192a3128831e |
rev | line source |
---|---|
9075 | 1 #!/bin/bash |
11411 | 2 topic=$(echo "$@" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") |
10340 | 3 topic1=$(echo '`'"$topic" | sed 's/^`\(`\|$\)//') |
10259
cc2a8bbb4738
<oerjan> sled bin/?//4,$s/topic1/topic2/;10i elif [ -e "$topic1" ];
HackBot
parents:
10258
diff
changeset
|
4 topic2=$(echo "$topic" | sed "s/s$//") |
9075 | 5 cd wisdom |
10259
cc2a8bbb4738
<oerjan> sled bin/?//4,$s/topic1/topic2/;10i elif [ -e "$topic1" ];
HackBot
parents:
10258
diff
changeset
|
6 if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; |
9075 | 7 then cat /dev/urandom; |
8 elif [ -e "$topic" ]; | |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
9 then cat "$topic"; |
10260
34c848603b51
<oerjan> sled bin/?//10s/^/ /;11ithen cat "$topic1";
HackBot
parents:
10259
diff
changeset
|
10 elif [ -e "$topic1" ]; |
10261 | 11 then cat "$topic1"; |
10259
cc2a8bbb4738
<oerjan> sled bin/?//4,$s/topic1/topic2/;10i elif [ -e "$topic1" ];
HackBot
parents:
10258
diff
changeset
|
12 elif [ -e "$topic2" ]; |
cc2a8bbb4738
<oerjan> sled bin/?//4,$s/topic1/topic2/;10i elif [ -e "$topic1" ];
HackBot
parents:
10258
diff
changeset
|
13 then cat "$topic2"; |
11412 | 14 else echo "$@? ¯\(°_o)/¯"; exit 1; |
10091
5aa89f714ea0
<oerjan> sled bin/?//s, [|] rnooodl,,g;s,fi,fi | rnooodl,
HackBot
parents:
9407
diff
changeset
|
15 fi | rnooodl |