Replace comma with newline in sed on MacOS?

Use tr instead:

tr , '\n' < file

Leave a Comment