various implementations as I learn them, mostly in bash.