#!/bin/bash TIME=$(date +%d%m_%H%M%S) echo ' Directory Tree

Directory Tree

./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