make sure to use only expressions that work on: a) old version-s of BASH b) on mac os x (without gnu tools installed)