forked from aurelien.plancke/ScodocTestClient
41 lines
2.2 KiB
Bash
Executable File
41 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
TIME=$(date +%d%m_%H%M%S)
|
|
echo '<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="Author" content="Made by 'tree'">
|
|
<meta name="GENERATOR" content="$Version: $ tree v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro $">
|
|
<title>Directory Tree</title>
|
|
<style type="text/css">
|
|
<!--
|
|
BODY { font-family : ariel, monospace, sans-serif; }
|
|
P { font-weight: normal; font-family : ariel, monospace, sans-serif; color: black; background-color: transparent;}
|
|
B { font-weight: normal; color: black; background-color: transparent;}
|
|
A:visited { font-weight : normal; text-decoration : none; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
|
|
A:link { font-weight : normal; text-decoration : none; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
|
|
A:hover { color : #000000; font-weight : normal; text-decoration : underline; background-color : yellow; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
|
|
A:active { color : #000000; font-weight: normal; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
|
|
.VERSION { font-size: small; font-family : arial, sans-serif; }
|
|
.NORM { color: black; background-color: transparent;}
|
|
.FIFO { color: purple; background-color: transparent;}
|
|
.CHAR { color: yellow; background-color: transparent;}
|
|
.DIR { color: blue; background-color: transparent;}
|
|
.BLOCK { color: yellow; background-color: transparent;}
|
|
.LINK { color: aqua; background-color: transparent;}
|
|
.SOCK { color: fuchsia;background-color: transparent;}
|
|
.EXEC { color: green; background-color: transparent;}
|
|
-->
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Directory Tree</h1><p>
|
|
<a href="./ResultatTest/">./ResultatTest/</a><br>
|
|
' >> ./ResultatTest/Résumé_"${TIME}".html
|
|
for file in ./ResultatTest/*.html; do
|
|
RESULT=$(cat $file | grep "Summary")
|
|
BASEFILE=$(basename $file)
|
|
LINK="${BASEFILE}"
|
|
echo "├── <a href=${LINK}>${BASEFILE}</a>'${RESULT}'<br>" >> ./ResultatTest/Résumé_${TIME}.html
|
|
done
|
|
echo '<br><br><br><br></body></html>' >> ./ResultatTest/Résumé_"${TIME}".html |