Hacker News new | ask | show | jobs
by lobotryas 4777 days ago
From what I recall to represent s newline in sed on osx you need to add an actual carriage return.

Take the poster's script above and copy it to a text file. Now replace \n with a new line, save and it should run.