I need to replace every "_" with "-" in html file but only in tag and only in "name" attribute.
So every this:
<a name="menu_portlet_test"> or <a name="whatever_is_here">
should become this:
<a name="menu-portlet-test"> and <a name="whatever-is-here">
Can't figure out how to force something like sed/awk to do it. Help!
See Question&Answers more detail:os