SyntaxFix
Write A Post
Hire A Developer
Questions
Using \n in sed is non-portable. The portable way to do what you want with sed is:
\n
sed
sed 's/:/\ /g' ~/Desktop/myfile.txt
but in reality this isn't a job for sed anyway, it's the job tr was created to do:
tr
tr ':' ' ' < ~/Desktop/myfile.txt