To convert GNU paste to BSD

text;

Command in GNU

echo "Masi,hello" | paste -sd,

which I want in BSD paste.
I am reading this answer here.

How can you write this in BSD paste.

Best Answer

On OSX you'll have to add an extra "-"

echo "Masi,hello" | paste -sd, -