#!/bin/sh # START PART 1 readonly REGEXP='^([0-9]+)\1$' # END PART 1 START PART 2 readonly REGEXP='^([0-9]+)\1+$' # END PART 2 tr ',' '\n'