How to replace the character ‘/’ with ‘,’ in a file?

sed ‘s/\//,/’ < filename
sed ‘s|/|,|’ < filename

Category: UNIX Interview Questions.