plomlompom's oplop implementation in bash