#!/bin/bash # turn report.txt into an html report echo -e "\n\n\t\n\n\n

Access logs with IOC indicators:

\n" > report.html cat report.txt | while read -r line; do echo -e "\t\n" >> report.html for element in $line; do echo -e "\t\t" >> report.html done echo -e "\t" >> report.html done echo -e "
$element
\n\n" >> report.html cp report.html /var/www/html/report.html