I've got a large number of tagged strings:
watch <TEAM>Philly's</TEAM> Game
what's on <TIME>Wednesday night eight o'clock</TIME>
..
I would like to lowercase all text except the XML tags. I.e.
watch <TEAM>philly's</TEAM> game
what's on <TIME>wednesday night eight o'clock</TIME>
I can lower case all the text by using awk:
awk '{print tolower($0)}' file.txt
but have no idea how to avoid XML tags. Any languages/tools are welcome.
No comments:
Post a Comment