I have something like this;
I like reading **books** and taking **notes** I was trying to get something like this;
I like reading <b>books</b> and taking <b>notes</b> Tried doing;
sed 's/\*\*\(.*\)\*\*/<b>\1<\/b>/g' a.txt This returns;
I like reading <b>books** and taking **notes</b> It wraps around the whole line. Any way to get around it?
note: I'm using a GNU version of sed