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