There are some rather archaic behaviors of the versions of these tools that come by default on MasOSX.
For instance, on a mac the 'sed' command doesn't understand the difference between space and tab
https://stackoverflow.com/questions/40311339/using-sed-on-ma...