Stap 16: Sommige data-extractie.
Meer dan een manier om de huid een kat.
# gewoon een gedachte
IFS '%' =
lijn = "[173] Virginia 3-5 5-7 310 289 5-2 0-5 verloren" 1 "
a ='echo $line | Cut - c8-28'
b ='echo $line | Cut - c29-31'
c ='echo $line | Cut - c33-35'
d ='echo $line | Cut - c38-40'
e ='echo $line | Cut - c42-44'
f ='echo $line | Cut - c46-48'
g ='echo $line | Cut - c51-53'
h ='echo $line | Cut - c56-61'
echo "" > somefile.html
echo "" >> somefile.html
echo "" >> somefile.html
echo "" >> somefile.html
echo "\" >> somefile.html
echo"
School | W-L | W-L | PF | PA | Huis | Weg | Huidige streak |
$a | $b | $c | $d | $e | $f | $g | $h |
">> somefile.html
echo"
">> somefile.html
echo"
">> somefile.html
#————————————–
chmod + x testithtml.sh
. / testithtml.sh
links2-dump somefile.html
Firefox
Somefile.html
School | W-L | W-L | PF | PA | Huis | Weg | Huidige streak |
Virginia | 3-5 | 5-7 | 310 | 289 | 5-2 | 0-5 | Verloren 1 |