To answer your question...
The replace portion of sed doesn't handle special characters as you would expect. Instead, create a file, replace.sed, with the following:
s/:/\
/g
Then, at the prompt:
sed -f replace.sed file.txt > newfile.txt
So, instead of \n, you're explicitly inserting the newline.
|