I have a file with lines that contain:
Some Text: More Text
I want to remove the html tags and r
One way using GNU sed:
GNU sed
sed -e 's/<\/b>/-/g' -e 's/<[^>]*>//g' file.txt
Example:
echo " Some Text: More Text " | sed -e 's/<\/b>/-/g' -e 's/<[^>]*>//g'
Result:
Some Text:- More Text