#!/bin/bash

# Correction du bogue de Tellico : les dates sont enregistrées sur 1 seul digit alors que les filtres en nécessitent 2, exemple : <month>2</month>
Nomtrc="bottin.tc"

for numd in 1 2 3 4 5 6 7 8 9
do

# Correction des mois
TEXTEI='<month>'$numd'</month>'
TXTREMPL='<month>0'$numd'</month>'
sed -i "s|$TEXTEI|$TXTREMPL|" $Nomtrc

# Correction des dates
TEXTEI='<day>'$numd'</day>'
TXTREMPL='<day>0'$numd'</day>'
sed -i "s|$TEXTEI|$TXTREMPL|" $Nomtrc

done

exit 0
