I enjoy learning how to modify files with awk, sed, and bash. However, I know it could cause issues down the road and I would like to be prepared with a log inside the file. I was thinking about how I could create a log in the footer after I modify an .html file but I am unsure how or what the process is called. I would like to be able to do as follows:
line break after the very last line of code
comment tag <!--
each item modifed on a line
end comment tag -->
Example:
<html>
<head>
</head>
<body>
<div class="example">This is before script</div>
</body>
<html>
<html>
<head>
</head>
<body>
<!--<div class="example">This is after script</div>-->
</body>
<html>
<!--
Change date 2012-12-20 13:13
Commented out example
-->