Replace comma with newline in sed on MacOS? September 15, 2022 by Tarik Use tr instead: tr , '\n' < file