On macOS you just run into `tr: Illegal byte sequence` The problem is that the script does not set `LC_ALL=C` and uses `echo -e` instead of `printf`. Also it does not suppress expected parser errors.
On macOS you just run into
tr: Illegal byte sequenceThe problem is that the script does not set
LC_ALL=Cand usesecho -einstead ofprintf. Also it does not suppress expected parser errors.