I want to replace in index.html using one of the default debian linux tool the following:
="([A-z]+).html"
with
="javadoc/$1.html"
index.html file contains the following:
<frame src="overview-frame.html" name="packageListFrame" title="All Packages">
<frame src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
</frameset>
<frame src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
Link to <a href="overview-summary.html">Non-frame version</a>.</p>
I have started using sed but I have expression error:
sed -E 's,="([^"]+)\.html",="javadoc\/\1.html",' public/javadoc/index.html
"I want to replace"(what?)"in index.html ..."andsed -E "s/=\"([A-z-]+)\"/\1something\2/"has only 1-capture but uses\1...\2(e.g. 2) backreferences??sed -E 's,="([^"]+)\.html",javadoc/\1.html,' public/javadoc/index.html