#!/bin/bash
# turn report.txt into an html report
echo -e "\n
\n\t\n\n\nAccess 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$element | " >> report.html
done
echo -e "\t
" >> report.html
done
echo -e "
\n\n" >> report.html
cp report.html /var/www/html/report.html