I have a HTML file like this:
<html><head>
<title>My Title</title>
</head>
<body>
Title of this page: PAGE_TITLE
</body>
</html>
How can replace PAGE_TITLE on title?
I try this command:
sed -i 's/\(.*?<title>\)\(.*?\)\(<\/title>.*?\)PAGE_TITLE/\1\2\3\2/' page.html
but it doesn't work.