Friday, March 10, 2017

[solved] how to replace a character with newline (\n) on Mac terminal / linux terminal

sed 's/,/\
/g'
But this way may not produce a linebreak recognizable by other commands

A better way:
tr , '\n' <temp

No comments:

Post a Comment