basically what I want to do is use SED (linux version) to make changes in a HTML file. When I execute that code, i get an "unknown command" error because sed can't tell what whitespace or line breaks are apparently.
sed 's|<a href="es/map-button.html">
<div class="map-button">|<div id="confirmation" onclick="confirmation()" class="map-button">
<script type="text/javascript">
<!--
function confirmation() {
var answer = confirm("Access map? (uses internet)")
if (answer){
window.location = "google.maps.com";;
}
else{
//alert("Returning to current content")
}
}
//-->
</script>|g' *.html
my delimiters are the "|" that you see here.