Improve sorting

This commit is contained in:
poka 2020-11-21 22:38:44 +01:00
parent a282d6a0c6
commit db37ea2f51
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,7 @@ cp $GPATH/tpl/css/wallets_balance.css $WEBPATH/css/
cp $GPATH/tpl/js/wallets_balance.js $WEBPATH/js/
cp $GPATH/tpl/wallets_balance.html $WEBPATH/data/wallets_balance.html
sort -nr <<<"$htmlBloc" > /tmp/solde_g1_html.txt
sort -Vr <<<"$htmlBloc" > /tmp/solde_g1_html.txt
printf '%s\n' '/_LINE/r /tmp/solde_g1_html.txt' 1 '/_LINE/d' w | ed $WEBPATH/data/wallets_balance.html > /dev/null
sed -i "s/_DATE/$(date '+%d-%m-%Y')/g" $WEBPATH/data/wallets_balance.html
sed -i "0,/_DATE/s//$(date '+%d-%m-%Y')/" $WEBPATH/data/wallets_balance.html
rm /tmp/solde_g1_html.txt

View File

@ -18,3 +18,5 @@ Données générés le _DATE<br>
</body>
</html>
_DATE