-
-
Save tecnologer/26745c20f65c562f962cbcc5dc3cfb2c to your computer and use it in GitHub Desktop.
Name generator that matchs an uncommon adjective with a common animal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
adjectives=('Adamant' 'Adroit' 'Amatory' 'Animistic' 'Antic' 'Arcadian' 'Baleful' | |
'Bellicose' 'Bilious' 'Boorish' 'Calamitous' 'Caustic' 'Cerulean' 'Comely' | |
'Concomitant' 'Contumacious' 'Corpulent' 'Crapulous' 'Defamatory' 'Didactic' | |
'Dilatory' 'Dowdy' 'Efficacious' 'Effulgent' 'Egregious' 'Endemic' 'Equanimous' | |
'Execrable' 'Fastidious' 'Feckless' 'Fecund' 'Friable' 'Functional' 'Fulsome' | |
'Garrulous' 'Guileless' 'Gustatory' 'Heuristic' 'Histrionic' 'Hubristic' | |
'Incendiary' 'Insidious' 'Insolent' 'Intransigent' 'Inveterate' 'Invidious' | |
'Irksome' 'Jejune' 'Jocular' 'Judicious' 'Lachrymose' 'Limpid' 'Loquacious' | |
'Luminous' 'Mannered' 'Mendacious' 'Meretricious' 'Minatory' 'Mordant' | |
'Munificent' 'Nefarious' 'Noxious' 'Obtuse' 'Parsimonious' 'Pendulous' | |
'Pernicious' 'Pervasive' 'Petulant' 'Platitudinous' 'Precipitate' 'Propitious' | |
'Puckish' 'Querulous' 'Quiescent' 'Rebarbative' 'Recalcitrant' 'Redolent' | |
'Rhadamanthine' 'Risible' 'Ruminative' 'Sagacious' 'Salubrious' 'Sartorial' | |
'Sclerotic' 'Serpentine' 'Spasmodic' 'Strident' 'Taciturn' 'Tenacious' | |
'Tremulous' 'Trenchant' 'Turbulent' 'Turgid' 'Ubiquitous' 'Uxorious' 'Verdant' | |
'Voluble' 'Voracious' 'Wheedling' 'Withering' 'Zealous') | |
animals=('Alligator' 'Alpaca' 'Anaconda' 'Ant' 'Antelope' 'Ape' 'Aphid' | |
'Armadillo' 'Asp' 'Ass' 'Baboon' 'Badger' 'Bald Eagle' 'Barracuda' 'Bass' | |
'Basset Hound' 'Bat' 'Bear' 'Beaver' 'Bedbug' 'Bee' 'Beetle' 'Bird' 'Bison' | |
'Black Panther' 'Black Widow Spider' 'Blue Jay' 'Blue Whale' 'Bobcat' 'Buffalo' | |
'Butterfly' 'Buzzard' 'Camel' 'Caribou' 'Carp' 'Cat' 'Caterpillar' 'Catfish' | |
'Cheetah' 'Chicken' 'Chimpanzee' 'Chipmunk' 'Cobra' 'Cod' 'Condor' 'Cougar' | |
'Cow' 'Coyote' 'Crab' 'Crane' 'Cricket' 'Crocodile' 'Crow' 'Cuckoo' 'Deer' | |
'Dinosaur' 'Dog' 'Dolphin' 'Donkey' 'Dove' 'Dragonfly' 'Duck' 'Eagle' 'Eel' | |
'Elephant' 'Emu' 'Falcon' 'Ferret' 'Finch' 'Fish' 'Flamingo' 'Flea' 'Fly' 'Fox' | |
'Frog' 'Goat' 'Goose' 'Gopher' 'Gorilla' 'Grasshopper' 'Hamster' 'Hare' 'Hawk' | |
'Hippopotamus' 'Horse' 'Hummingbird' 'Humpback Whale' 'Husky' 'Iguana' 'Impala' | |
'Kangaroo' 'Ladybug' 'Leopard' 'Lion' 'Lizard' 'Llama' 'Lobster' 'Mongoose' | |
'Monkey' 'Moose' 'Mosquito' 'Moth' 'Mountain Goat' 'Mouse' 'Mule' 'Octopus' | |
'Orca' 'Ostrich' 'Otter' 'Owl' 'Ox' 'Oyster' 'Panda' 'Parrot' 'Peacock' 'Pelican' | |
'Penguin' 'Perch' 'Pheasant' 'Pig' 'Pigeon' 'Platypus' 'Polar bear' 'Porcupine' | |
'Quail' 'Rabbit' 'Raccoon' 'Rat' 'Rattlesnake' 'Raven' 'Rooster' 'Sea Lion' | |
'Sheep' 'Shrew' 'Skunk' 'Snail' 'Snake' 'Spider' 'Tiger' 'Walrus' 'Whale' 'Wolf' | |
'Zebra') | |
echo -e "\n>>> Release Name Generator <<<\n" | |
echo "ENTER: to generate a new name" | |
echo -e "Q: for quiting\n" | |
while [ 1 ] | |
do | |
# Get random expression... | |
selectedAdjective=${adjectives[$RANDOM % ${#adjectives[@]} ]} | |
selectedAnimal=${animals[$RANDOM % ${#animals[@]} ]} | |
# Write to Shell | |
echo $selectedAdjective $selectedAnimal | |
read -s -n 1 input | |
if [[ $input = "q" ]] || [[ $input = "Q" ]] | |
then break | |
fi | |
done | |
echo -e "\nSelected Release Name:" | |
echo $selectedAdjective $selectedAnimal | |
echo "${selectedAdjective} ${selectedAnimal}" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment