Replacig text inside multiple repeating patterns in same line
0
votes
1
answer
73
views
I have something like this;
I like reading **books** and taking **notes**
I was trying to get something like this;
I like reading books and taking notes
Tried doing;
sed 's/\*\*\(.*\)\*\*/\1/g' a.txt
This returns;
I like reading books** and taking **notes
It wraps around the whole line. Any way to get around it?
*note: I'm using a GNU version of sed*
Asked by atheros
(256 rep)
Apr 16, 2021, 04:29 PM
Last activity: Apr 16, 2021, 04:54 PM
Last activity: Apr 16, 2021, 04:54 PM