use perl instead of sed
echo "sed -e"|perl -pe 's/sed -e/perl -pe/'
Replace sed regular expressions with perl patterns on the command line.
The sed equivalent is: echo "sed -e"|sed -e 's/sed -e/perl -pe/'
Sample Output
[root@bigdaddy ~]# echo "sed -e"|perl -pe 's/sed -e/perl -pe/'
perl -pe