To replace comma of any other character with newline on Linux or Mac, the following tr command can be used
tr ',' '\n' filename
or
cat filename | tr ',' '\n'
example:
echo 'a,b,c' | tr ',' '\n'
a
b
c
To replace comma of any other character with newline on Linux or Mac, the following tr command can be used
tr ',' '\n' filename
or
cat filename | tr ',' '\n'
example:
echo 'a,b,c' | tr ',' '\n'
a
b
c