annotate bin/quote @ 6413:0484c5d88f8b

<b_jonas> le/rn ent/Ents are very useful creatures for the puzzle of writing town names in Hungary as the catenation of six or more Hungarian words. Bal-a-s-s-a-gyarmat Bal-a-ton-{s-z\xc3\xa1r-sz\xc3\xb3,{rend,szem}-e-s} Egy-h\xc3\xa1z-a-s-holl\xc3\xb3-s Fel-s-\xc5\x91sz-ent-m\xc3\xa1r-ton J\xc3\xa1sz-\xc3\xa1r-ok-sz\xc3\xa1ll-\xc3\xa1-s Ki-s-kun-{f\xc3\xa9l-egy-h\xc3\xa1z-a,hal-a-s} R\xc3\xa1-basz-ent-mik-l\xc3\xb3-s V\xc3\xa9r-te-s-sz\xc5\x91-l\xc5\x91-s.
author HackBot
date Sat, 19 Dec 2015 16:21:05 +0000
parents e037173e0012
children 797fb6694b97 3e54f8d1843f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
1 #!/bin/sh
e037173e0012 Initial import.
HackBot
parents:
diff changeset
2 allquotes | if [ "$1" ]; then
e037173e0012 Initial import.
HackBot
parents:
diff changeset
3 if expr "$1" + 0 >/dev/null 2>&1; then
e037173e0012 Initial import.
HackBot
parents:
diff changeset
4 sed "$1q;d"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
5 else
e037173e0012 Initial import.
HackBot
parents:
diff changeset
6 grep -P -i -- "$1"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
7 fi
e037173e0012 Initial import.
HackBot
parents:
diff changeset
8 else shuf -n 1; fi