Question : Why can't I insert line feeds using Sed in Solaris

cat  inputfile  | sed  's/Selectedtext/\nSelectedtext/g'

I want to replace selected text with:
New line and then the selected text.

I get nSelected text as a result

I need this for work and am trying to do this now.  

Solaris does not have the great tools that linux does.

Answer : Why can't I insert line feeds using Sed in Solaris

sed "s/SelectedText/\\`echo -e '\n\r'`SelectedText/g"
Random Solutions  
 
programming4us programming4us