#!/bin/bash TIME=$(date +%d%m_%H%M%S) echo '
./ResultatTest/
' >> ./ResultatTest/Résumé_"${TIME}".html
for file in ./ResultatTest/*.html; do
RESULT=$(cat $file | grep "Summary")
BASEFILE=$(basename $file)
LINK="$BASEFILE"
if [[ $LINK != *"Résumé"* ]] ; then
echo "├── ${BASEFILE}${RESULT}
" >> ./ResultatTest/Résumé_${TIME}.html
fi
done
echo '
' >> ./ResultatTest/Résumé_"${TIME}".html