1 of 1 people found this helpful
could you try this: sed 's/,/\'$'\n/g'
Great ! your command is ok.
can you explain me the '$' character ?
Yeah, this sed syntax is not working.
I just googled out & got an alternative for this.
You can try below:
tr , '\n' < file
I tested this on below contents in a text file:
thanks you very much
is there a problem w/ ankur's ? that worked fine for me.
Ankur's suggestion is also working.
Try this also, if you want ot go with sed only:
sed -e 's/,/\'$'\n/g' <file>
@Bill: My suggestion is also working Bill.