I have a file containing text
**This is bold text**
*This is italicized text*
I wish to convert the above into
\textbf{This is bold text}
\emph{This is italicized text}
using stream editor(sed). Kindly guide me on this matter.
I have used this code
sed -i 's/\*\*\(.*\)\*\*/\\textbf{\1}/g' SampleCode
and it works like a charm
Thanks from Google group