Bash script to extract HTML comment into a Markdown file
A bug


If your html contains a backspace character e.g

&lt;p&gt;The special character \n is a way to include read line&lt;/p&gt;


your code interprets it a


  The special character n is a way to include read line.


to avoid this, add "-r" switch to your read line

cat  hot-form-validator.html | while  read -r "line";do


You want to check if your file exists before reading it



if [ -f $filename ]; then
#do something
else
#do something
fi